This is a simple application built using CQRS
and EventSourcing
patterns.
You can find more information about EventSourcing
at thehonestcoder.com.
Aggregate tests are written using given-when-then
pattern:
Given
- a set of existing events is providedWhen
- a command is providedThen
- a set of resulting events is provided
Tests specifications are generated from tests by running Accounts.SpecGenerator
.
- Run
docker-compose up
to start the application. - Connect to EventStoreDB admin panel (http://localhost:2113/) and create a persistent subscription:
- Stream name:
$ce-account
- Group name:
account-view
- Stream name:
- Run
docker-compose restart
to restart the application.