Skip to content

tautvydasversockas/cqrs-eventsourcing

Repository files navigation

CQRS & EventSourcing

Build status

This is a simple application built using CQRS and EventSourcing patterns.

You can find more information about EventSourcing at thehonestcoder.com.

Architecture

image

Testing

Aggregate tests are written using given-when-then pattern:

  • Given - a set of existing events is provided
  • When - a command is provided
  • Then - a set of resulting events is provided

Tests specifications are generated from tests by running Accounts.SpecGenerator.

Running the application

  • 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
  • Run docker-compose restart to restart the application.

Support

tautvydasverso

About

CQRS and Event Sourcing application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published