aayushrajputz/TaskFlow-Backend ? reverse-engineered prompt
Reverse engineered prompt
Build me a backend for a multi tenant project management app called TaskFlow.
It should let people sign up, log in, refresh their session, and log out, with secure access token and refresh token handling, including rotating refresh tokens and the ability to revoke one device or all devices. Each user should be tied to an organization, and every project request has to stay inside that organization so users can only see data they’re allowed to access.
I need endpoints for creating and listing projects, viewing a single project, and deleting a project only for org admins. Please include role based access control, org checks using an org id header, solid validation, and clear error handling for bad requests, unauthorized access, forbidden actions, and missing resources.
Use TypeScript, Node, Express, PostgreSQL with Prisma, and Redis for session tracking. Set it up so it runs locally with environment variables, migrations, and a clean dev server. If you need to check current docs online for anything, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit