nestjs-clean-architecture

A modular NestJS boilerplate with CQRS, Event Sourcing, DDD, Clean Architecture and MongoDB. Built-in observability with Prometheus & Grafana, API docs via Swagger and Dockerized deployment. Ideal for scalable, maintainable applications.

dockerboilerplatetypescriptmongodbdocker-composeboilerplate-templategrafanaswaggerdomain-driven-designprometheusclean-architectureevent-driven-architecture
UnknownRepo

Preview

nestjs-clean-architecture preview

Overview

This is a NestJS boilerplate implementing Domain-Driven Design, Clean Architecture, CQRS and Event Sourcing with MongoDB and Mongoose. It provides a production-ready foundation for enterprise applications with strict layer separation, JWT and OAuth2 authentication, role-based access control, encrypted data storage, Docker containerization, comprehensive testing and monitoring via Prometheus and Grafana.

Features

None

Feature Flags

userDashboardauthenticationblogemailsauthorizationanalyticsapiDocsrateLimiting

Recommended Use Cases

None

Frontend

None

Backend

nodejsnestjsrailsgo

Auth Providers

passport

Deployment Targets

dockergcp

Payment Providers

None

Quick Facts

โญ Stars
51
๐Ÿด Forks
6
๐Ÿ”„ Active
Yes
๐Ÿ•’ Last Commit
2025-10-16T21:18:32.000Z

Stack

Data Layer

Databases
postgresql, mongodb
ORM
typeorm

UI Stack

Developer Experience

Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes

Pricing

Classification
unknown
Selected
โ€”
Notes
No clear pricing signals
Get Started with this Boilerplate