Full example nest-event-store-cqrs use KafkaJS as event-store module with Nest and CQRS.
After the hero service fires a HeroKilledDragonEvent
, the world service must spawn a new dragon by issuing a RespawnDragonCommand
$ npm install
# start kafka and kafka-ui
$ docker-compose up -d
# watch mode hero and world services
$ yarn start:dev hero
$ yarn start:dev world