Besufikad17/nest-demo ? reverse-engineered prompt

Reverse engineered prompt

Build me a production ready NestJS backend for a user account system.

I want users to be able to sign up, log in, and have proper role based access control for protected routes. It should support two step verification with both authenticator apps and passkeys, plus email based flows where needed. Also include push notifications, user activity tracking, and a clean API docs page so the endpoints are easy to test.

Use PostgreSQL with Prisma for the database, and make sure the app is set up with environment based config, JWT auth, mail sending, Firebase for notifications, and Redis backed background jobs or queues where that fits. Add rate limiting that can be turned on gradually in monitor mode first, then enforce mode later. Please include seeding for roles and any setup needed so the auth flow works right away.

If you need to check the latest docs for any library behavior, look them up online and keep the implementation solid and production friendly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab