ddd-cqrs
Wrap plain functions and class methods with logging, validation, authorization, caching, idempotency and more, model the domain with aggregates and commands, and run commands, queries and events with the API of NestJS CQRS, all without a framework.
What is here
Section titled “What is here”Getting startedInstall the engine, create a pipeline and wrap a function.
ConceptsHow an operation is named and kinded, in which order behaviors run, and what the context holds.
CQRS without NestJSDecorated handlers, a pipeline per handler and the buses of createCqrs(), with no container.
GuidesPlain Node.js, class methods, CQRS, coming from NestJS, DDD, HTTP with Express and Fastify, multi-tenancy, background jobs, testing, custom behaviors and HTTP errors.
NestJS IntegrationGlue NestJS and @nestjs/cqrs handlers with behavior pipelines and ErrorFilter via @cqrs-ddd/nestjs.
PackagesOne page per package: what it does, how to install it and how to configure it.