DEV Community

Cover image for Full-stack RBAC with NestJS Clean Architecture + Next.js FSD
Tuguldur Unurtsetseg
Tuguldur Unurtsetseg

Posted on

Full-stack RBAC with NestJS Clean Architecture + Next.js FSD

Built a full-stack RBAC admin starter: NestJS (Clean Architecture) + Next.js 16 (FSD). JWT refresh, permission-gated UI, sheet-based CRUD. MIT. Looking for feedback.

โšก Next.js 16 Admin Dashboard Template

Architecture: Strictly adheres to Feature-Sliced Design (FSD) to prevent codebase rot in large applications.
Key Features: Full-scale Role-Based Access Control (RBAC) UI, URL-driven advanced tables (TanStack Table v8), global caching (TanStack Query v5), and dynamic sheet-based UX configurations using shadcn/ui and Tailwind v4.
Quality Assurance: Pre-configured with Playwright for End-to-End (E2E) testing and automated GitHub Actions CI.

๐Ÿ›ก๏ธ NestJS Clean Architecture REST API

Architecture: Implements strict layered Clean Architecture (Presentation โž” Application โž” Domain ๐Ÿกจ Infrastructure) ensuring zero database/framework lock-in.
Key Features: Advanced authentication via JWT refresh rotation, stateful RBAC with high-performance Redis permissions caching, and enterprise-grade security structures.
Quality Assurance: Achieves ~98% test coverage across domain and application layers using Jest.

Top comments (0)