thecarftcity/backend ? reverse-engineered prompt

Reverse engineered prompt

Build me the backend for a simple craft marketplace or store called The Craft City.

I want a clean JavaScript server that handles the usual API stuff, with routes, controllers, models, middleware, and config separated nicely. It should connect to a database, expose REST endpoints for the app, and include payment support using Razorpay since there’s already a Razorpay file in the project. Make sure the server starts properly from one main entry file, uses environment variables, and has sensible error handling and request validation.

Please set it up so it’s easy to add things like products, orders, users, and payments later, even if some of those are just basic starter endpoints for now. If anything is unclear, look up the current docs online and choose the simplest working approach. Also make sure the code is organized and ready to run locally without extra cleanup.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab