stevchen99/MERN-Back-GestStock ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple backend for a stock management app.
I want to be able to keep track of items in stock, add new products, update them, delete them, and view the current list easily. Please set it up as a clean Node and Express API with MongoDB, using a structure that makes sense for controllers, models, routes, and config. If it helps, add basic validation and sensible error handling so it feels ready to use.
Make the API easy to connect to a future frontend, and include the main endpoints for working with stock items. Use clear naming and keep the code organized and simple to extend later.
If you need to check current best practices or docs for anything, feel free to look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit