Skip to content

davidnussio/moleculer-cqrs-demo

Repository files navigation

Moleculer

moleculer-cqrs

GET localhost:3000/api/news/read-model aggregateId=873b97b6-2db9-4b1d-8938-6b23ae141eec

NPM scripts

  • npm run dev: Start development mode (load all services locally with hot-reload & REPL)
  • npm run start: Start production mode (set SERVICES env variable to load certain services)
  • npm run cli: Start a CLI and connect to production. Don't forget to set production namespace with --ns argument in script
  • npm run lint: Run ESLint
  • npm run ci: Run continuous test mode with watching
  • npm test: Run tests & generate coverage report
  • npm run dc:up: Start the stack with Docker Compose
  • npm run dc:down: Stop the stack with Docker Compose

Testing CQRS module

command

replay

  • Testing emit and broadcast event

history

read-model

About

Proof of concept - cqrs, event sourcing and moleculer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages