ujjawal-aiml/PDF_converter_MERN ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple full stack web app that converts Word documents into PDFs.

I want a clean React frontend where someone can choose a .doc or .docx file, click a button to convert it, and then automatically download the PDF when it’s ready. Please show a clear success message when it works and a friendly error message if the file is missing or the conversion fails.

On the backend, set up an Express API that receives one uploaded file, converts it to PDF, and sends the PDF back to the frontend. Use file upload handling and make sure the frontend can talk to the backend locally without CORS issues. Keep it easy to run in development with one command for each side.

Use a modern, simple UI with good spacing and a polished look. If you need to check current library docs or best practices, look them up online. Also make sure the original filename is preserved in the downloaded PDF.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab