tushar2902/node-mern-backend-kit ? reverse-engineered prompt
Reverse engineered prompt
Build me a production ready backend for a web and mobile app using Node and Express with MongoDB. I want JWT login and signup, role based access so admins and sub admins can have different permissions, and a clean structure for users, addresses, and shared API routes.
It should support file uploads to AWS S3, email sending, basic PDF and Excel generation, and a few helper utilities like OTP and response formatting. Please also add Swagger documentation for the API with protected docs pages for admin and app users, plus request validation on the main endpoints.
Make sure it can switch between local, development, test, and production databases from env settings, and set it up so new Mongo models can be added easily without changing a bunch of imports. Include sensible error handling, auth middleware, and a good starting folder structure. If you need current package or docs details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit