nest-admin is a separated front-end and back-end permission system with fine-grained RBAC, JWT auth, and Swagger APIs. Deploy it with MySQL, Redis, and Docker using provided SQL and environment templates.
Overview
nest-admin is a full-stack administration console built on NestJS and Vue with Ant Design Vue on the client. It targets teams that need role-based access control down to button-level permissions, RESTful APIs, and optional single sign-on patterns.
The back end uses TypeORM with MySQL, Redis for caching or sessions, and JWT access and refresh tokens with secrets validated at startup. API permissions resolve from database roles rather than token claims, and active sessions can be tracked in a token table. A public demo pairs a hosted UI with API and Swagger endpoints.
Operators initialize the schema from bundled SQL, copy environment templates for development or production, and can run supporting services through Docker. Production images wait for the database host, run migrations, and start under a process manager. Demo mode can lock the built-in administrator account and restrict write operations on shared demos.
Key features
- Fine-grained RBAC including button permissions
- JWT access and refresh token authentication
- Vue 3 admin UI with Ant Design Vue
- Swagger-documented REST APIs
- MySQL persistence via TypeORM
- Redis integration
- Docker-based deployment path
- Database migration tooling
Use cases
- Bootstrapping an internal operations console
- Managing users, roles, and API permissions
- Teaching NestJS admin patterns with a working template
- Hosting a self-managed back-office API and UI
- Demonstrating SSO-ready JWT auth flows