kevin-sonani-au51/Product-Inventory-System-Backend — reverse-engineered prompt

Reverse engineered prompt

Build me a simple backend for a product inventory system. I want something I can use to keep track of products, their basic details, and how many items are in stock. It should have clean API endpoints to create products, view all products, get one product by id, update product info, adjust inventory quantities, and delete products when needed.

Please make it feel complete enough to test right away, with sensible validation, clear error responses, and a database connection setup that’s easy to configure with environment values. If there’s already starter code in this repo, finish and organize it so the routes, controllers, and data models all work together properly.

Also include a simple health check or welcome route, and make sure the app starts cleanly and is easy to run locally. If anything is unclear, use common sense for a basic inventory backend and look up current docs online if you need to.

Want more depth? Deep Reverse