drun16/flask_rbac_project ? reverse-engineered prompt
Reverse engineered prompt
Build me a Flask web app for user sign up, login, and logout, with proper password hashing and role based access control.
I want two roles, User and Admin, where normal users only see protected pages they are allowed to access, and admins get a full admin dashboard where they can manage users and roles. Please include a clean setup for the database, migrations, and a simple way to seed the first admin account and roles. It should be ready to run locally with SQLite, but also be easy to deploy with a production database setup.
Make the app feel like a real starter project, not just a demo, so include the basic structure for authentication, admin pages, and a few tests with pytest to confirm the login and permission logic works. If you need to check current docs for any Flask extensions, feel free to look them up online.
Are you gonna build this?
make sure you review the code using coderabbit