// the find
0xb4lamx/nestjs-boilerplate-microservice
Nestjs Microservice boilerplate: apply DDD, CQRS, and Event Sourcing within an event driven architecture
A NestJS boilerplate wiring together CQRS, DDD, Event Sourcing, and GraphQL in a single users-module example. It's aimed at developers who want a pre-wired skeleton before building a microservice from scratch. The patterns are real but the implementation depth is shallow.
The full CQRS stack is actually wired up end-to-end — commands, queries, events, sagas, and event handlers are all present and separated correctly, not just stubbed. EventStore is used as an actual event store (with projection setup documented), not just a message bus. The Docker setup is self-contained and gets you a working stack including MySQL, EventStore, and Adminer with a single script. Renovate is configured, so dependency drift is somewhat managed.
The only domain is 'users' — one entity, four CRUD operations — so there's essentially nothing here to guide you on how DDD aggregates, bounded contexts, or sagas would work at non-trivial scale. The README's 'Future Goals' literally says 'Add tests', and the test directory has a single e2e smoke test; the unit test infrastructure is declared but empty. NestJS is v10 but EventStore is wired via a provider file rather than the official NestJS EventStore package, which means upgrade paths are manual and fragile. MySQL + EventStore is an unusual combination that forces dual-write coordination — no guidance or tooling here for handling that consistency problem.