Introduction
The project goal is to provide a tiny sample how to approach (D)DDD, CQRS and EventSourcing in node.js. Don't take this as best practice or as starting point for a real implementation:
This sample implementation of CQRS / Eventsourcing is using:
- redis for Pub/Sub and Storage
- nodeEventStore for EventSourcing including it's redis storage implementation.
get it up and running
start server in host and domain folder
node server.jsdirect your browser to
http://localhost:3000
Read the annotated code
- domain - commandHandling, using nodeEventStore, Publishing.
- host - webserver, socket.io, eventdenormalizing.
- clientside. - MVVM, incrementel updates via events
