Separated admin stack: NestJS REST API with MySQL, TypeORM, Redis, and JWT, plus a Vue 3 Ant Design Vue front end with fine-grained RBAC.
Overview
Nest Admin is a full-stack starter for enterprise-style back-office administration. The backend uses NestJS with TypeScript, TypeORM, MySQL, Redis, JWT authentication, and Swagger-documented REST APIs. The frontend is Vue 3 with Ant Design Vue, calling the same API surface.
Access control is role-based with granularity down to button-level permissions, including single sign-on. API authorization reads current roles from the database rather than trusting role claims inside tokens; issued access tokens must remain registered to stay valid.
Operators initialize MySQL from the provided SQL script and configure environment files for database, Redis, and secrets. JWT and refresh-token secrets must each be at least 32 random characters or the process refuses to start. Docker and docker compose are supported for local dependencies and production-style images that wait for the database, run migrations, and serve the API under pm2-runtime.
A demo mode can lock down the built-in administrator account and restrict mutating HTTP methods while leaving read and login available. New users receive a default initial password until an administrator changes it. The pairing is intended as a template for teams building internal admin consoles on familiar JavaScript stack components.
Key features
- NestJS REST API with Swagger
- Vue 3 Ant Design Vue admin UI
- RBAC with button-level permissions
- JWT and refresh token authentication
- MySQL via TypeORM and Redis cache
- Docker and docker compose deployment
- Database migration workflow
- Demo mode for public deployments
Use cases
- Internal enterprise admin consoles
- RBAC-protected back-office APIs
- Full-stack admin starter on Nest and Vue
- Teams needing SSO-ready permission templates
- Self-hosted operations dashboards