snrrapelli/mern-dynamic-rbac ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple MERN app that demonstrates dynamic role based access control.

I want a user login flow with JWT auth, then a system where roles can be created and edited, permissions can be assigned to those roles, and each user gets exactly one role. Those permissions should control what the user can see and do in the app, including pages, menus, API access, and action buttons. Use readable permission codes like users.read and users.create.

Please make it feel like a real admin dashboard, with a clean React interface, forms for managing users, roles, and permissions, and protected routes on both the frontend and backend. Use MongoDB for storage, Express and Node on the server, and keep the UI polished with Material UI. If you need to check current docs for any of the libraries, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab