saimdinky/nodeJs-with-typeORM — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a clean starter backend API for a user management system. I want people to be able to sign up, log in, get a JWT token, and then manage roles and permissions through normal REST endpoints. Roles and permissions should support create, read, update, delete, active only lists, and optional pagination with useful metadata like page, limit, total pages, next and previous.

Use Node.js with Express, TypeORM, and MySQL. Keep the code organized with controllers, services, repositories, and models so it’s easy to extend later. Add password hashing, basic validation, CORS, secure headers, and consistent success and error responses.

Please include health and test endpoints, an environment file example, Docker and Docker Compose setup for the app plus MySQL, and simple instructions to run it locally or with Docker. Use modern JavaScript with Babel since TypeORM decorators are needed. Look up current docs online if you need to.

Want more depth? Deep Reverse