thinkphp/task-manager-mern ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple todo list app that uses React on the front end and Express with MongoDB on the back end.
I want to be able to add a task, edit a task, and delete a task, with a confirmation before deleting. The tasks should be saved in MongoDB so they stay there after refresh. Please set up a clean REST API for getting all tasks, creating a task, updating a task, and deleting a task, and connect the React app to it so the UI works smoothly. Use a Vite based React app for the frontend and make sure local development works with the frontend talking to the backend without extra hassle.
Please include a basic project structure with separate frontend and backend folders, environment variable support for the database connection and port, and make it easy to run locally with clear defaults. If you need to check current docs for anything, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit