A modern, scalable, signal-first Angular 21 architecture built for real-world enterprise and SaaS applications.
This boilerplate provides a production-ready foundation using Domain Driven Design, Clean Architecture, and Angular’s latest features including standalone APIs, zoneless change detection, and signals.
Most frontend projects slow down over time due to poor structure, tight coupling, and inconsistent architecture.
This boilerplate solves that by providing:
- Clear domain ownership
- Enterprise-grade infrastructure layer
- Signal-based reactive state management
- Scalable feature architecture
- Centralized error, loading, logging & caching systems
- Reusable design system
- Mock API development support
- Performance and scalability patterns
- Standalone components
- Zoneless change detection
- Signals-first reactive state
- Function-based guards & interceptors
Each feature is self-contained with:
- API contracts
- Repository layer
- Store layer
- UI layer
- Providers
- HTTP abstraction layer
- Interceptor pipeline
- Logging system
- Global error handling
- Loading tracking system
- Request caching
- Smart retry strategy
- Login workflow
- Role hierarchy
- Permission guards
- Refresh token handling
- Route-level security
- Optimistic UI updates
- Rollback handling
- Signal forms
- Repository pattern
- DTO → Model mapping
- API-driven feature toggling
- Directive-based UI rendering
- Dark / Light mode
- Dynamic color branding
- CSS variable integration
- Angular Material + Tailwind sync
- Automatic request detection
- Global loading store
- Reusable skeleton directive
- Centralized HTTP error interceptor
- Error classification
- Toast notification system
- Logger integration
- Mock Service Worker (MSW)
- Domain-aligned API simulation
- Offline development support
UI → Store → Repository → HttpService → Interceptors → API/MSW → Mapper → Store → UI
src/app
│
├── app-shell → App bootstrap, routing & providers
├── core → Infrastructure layer
├── design-system → Reusable UI + theming
├── domains → Business features (DDD)
├── layout → App shell layout
├── mock-api → MSW mock backend
└── shared → Utilities & helpers
domains/tasks
├── api
├── models
├── store
├── ui
├── providers
└── routes
Each domain owns its entire business logic.
- Angular 21
- Angular Signals
- Angular Material
- Tailwind CSS
- SCSS architecture
- MSW (Mock Service Worker)
- RxJS
- TypeScript Strict Mode
✔ Optimistic CRUD ✔ Role-based routing ✔ Feature flag rendering ✔ Centralized logging ✔ Global loading detection ✔ API caching ✔ Retry strategy ✔ Performance monitoring hooks ✔ Prefetch navigation support
git clone <repo-url>
cd <project-name>npm installnpm startApplication runs at:
http://localhost:4200
MSW is already configured.
If needed:
npx msw init public/- Create new domain:
domains/reports
- Follow domain structure:
- api
- models
- store
- ui
- providers
-
Register routes
-
Done ✅
Themes can be modified inside:
design-system/theme
Supports:
- Brand colors
- Dark/light mode
- Multi-tenant theming
- Auth Guards
- Role Guards
- Permission Guards
- Feature Guards
- Refresh token pipeline
- Request caching
- Route prefetch
- Lazy store injection
- Optimistic UI updates
This boilerplate improves:
| Area | Benefit |
|---|---|
| Maintainability | Clear separation of concerns |
| Debugging | Centralized logging & error handling |
| Scalability | Domain-based feature isolation |
| Team Collaboration | Clear ownership boundaries |
| Development Speed | Prebuilt infrastructure |
| Reliability | Optimistic rollback & retry strategy |
Use for:
- Enterprise dashboards
- SaaS platforms
- Admin panels
- Internal tools
- Scalable Angular platforms
Supports:
- Feature versioning
- Microfrontend migration
- Nx monorepo integration
- SSR integration
- Multi-team development
- Follow domain-driven structure
- Avoid placing business logic inside core
- Keep UI reusable under design-system
- Maintain strict typing
- Write minimal, clean, scalable code
This project demonstrates:
- Advanced Angular architecture
- Signal-based state management
- Enterprise frontend patterns
- Production-grade infrastructure design
This boilerplate is designed as a reusable foundation to accelerate modern Angular enterprise application development.
MIT License
Consider starring ⭐ the repository to support and share with the community.