Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 906 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 906 Bytes

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