Doc2PDF is a full-stack application designed to convert Microsoft Word documents (.doc and .docx) into PDF format. The app is built using React.js for the frontend and Node.js with Express for the backend. It features a responsive design and supports both dark and light themes. The application uses Tailwind CSS for styling and includes various tools and libraries for development.
- Frontend: React.js, Tailwind CSS
- Backend: Node.js, Express
- Styling: Tailwind CSS
- Development Tools: Vite, Nodemon
- Libraries:
multer(for handling file uploads)docx-pdf(for converting Word documents to PDF)
-
Clone the Repository:
git clone https://github.com/your-username/Doc2PDF.git cd Doc2PDF -
Install Dependencies:
npm install
-
Start the Development Server:
npm start
Open your browser and navigate to
http://localhost:3000to view the application.
-
Navigate to the Backend Directory (if it's a separate directory):
cd server -
Install Dependencies:
npm install
-
Start the Server:
nodemon server.js
Ensure the backend server is running and accessible.
- Open the Application: Go to
http://localhost:3000in your browser. - Upload a File: Click on the "Choose File" button to select a
.docor.docxfile from your computer. - Convert the File: Click on the "Convert File" button to start the conversion process.
- Download the PDF: Once the conversion is complete, you will be provided with a download link for the converted PDF file.
- API Endpoint: The frontend is configured to communicate with the backend API endpoint at
http://localhost:3000/convertFile(adjust if necessary).
Use Postman to test the API endpoints:
- Upload File:
POST /convertFilewithmultipart/form-datacontaining the file.
We welcome contributions to improve the project. To contribute:
- Fork the Repository.
- Create a New Branch:
git checkout -b feature/your-feature
- Make Your Changes.
- Commit Your Changes:
git add . git commit -m "Add your message here"
- Push to Your Fork:
git push origin feature/your-feature
- Create a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or support, please contact:
- Author: [email protected]
- GitHub: ajaypatil1993




