Skip to content

haitt/convert_doc_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

Convert Doc PDF

A Laravel application with Inertia.js and React for converting documents to PDF format.

Features

  • Document to PDF conversion (supports .doc, .docx, .txt, .rtf)
  • User-friendly interface with React components
  • Admin dashboard with conversion statistics
  • Docker containerization
  • Modern UI with Tailwind CSS

Tech Stack

  • Backend: Laravel 10
  • Frontend: React 18 + Inertia.js
  • Styling: Tailwind CSS
  • Database: MySQL 8.0
  • Cache: Redis
  • Containerization: Docker + Docker Compose

Prerequisites

  • Docker
  • Docker Compose

Installation

  1. Clone the repository:
git clone <repository-url>
cd convert_doc_pdf
  1. Copy the environment file:
cp .env.example .env
  1. Update the .env file with your configuration (database settings are already configured for Docker).

  2. Build and start the Docker containers:

docker-compose up -d --build
  1. Install PHP dependencies:
docker-compose exec app composer install
  1. Generate application key:
docker-compose exec app php artisan key:generate
  1. Run database migrations:
docker-compose exec app php artisan migrate
  1. Install Node.js dependencies and build assets:
docker-compose exec app npm install
docker-compose exec app npm run build

Usage

  1. Access the application at: http://localhost:8000

  2. User Interface: Upload documents and convert them to PDF

  3. Admin Dashboard: Access at /admin to view conversion statistics

Project Structure

├── app/
│   ├── Http/Controllers/
│   │   ├── HomeController.php          # Main user interface
│   │   └── Admin/
│   │       └── DashboardController.php # Admin dashboard
│   └── Models/
│       └── Conversion.php              # Conversion model
├── resources/
│   ├── js/
│   │   ├── Pages/
│   │   │   ├── Home.jsx                # User index page
│   │   │   └── Admin/
│   │   │       └── Dashboard.jsx       # Admin dashboard
│   │   ├── Components/                 # Reusable components
│   │   ├── Layouts/
│   │   │   └── AppLayout.jsx           # Main layout
│   │   └── app.jsx                     # React app entry
│   └── views/
│       └── app.blade.php               # Main blade template
├── docker/                             # Docker configuration
├── Dockerfile                          # PHP application container
└── docker-compose.yml                  # Multi-container setup

Docker Services

  • app: Laravel PHP application
  • webserver: Nginx web server
  • db: MySQL database
  • redis: Redis cache

Development

To run in development mode:

# Start containers
docker-compose up -d

# Watch for changes
docker-compose exec app npm run dev

# Run migrations
docker-compose exec app php artisan migrate

# Access logs
docker-compose logs -f app

API Endpoints

  • GET / - User interface
  • POST /convert - Convert document to PDF
  • GET /download/{id} - Download converted PDF
  • GET /admin - Admin dashboard (requires authentication)

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

This project is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages