This is a simple example of how to use Marten for event sourcing with projections.
docker-compose.yml
: This file contains thePostgreSQL
configuration. Used by Marten to store document data.src/EventSourcingMartenWebApi.csproj
: This is the Web Api project.
- Clone the repository
- Modify
docker-compose.yml
to set the desired persistent volume location forPostgreSQL
data - Run
docker-compose up -d
to startPostgreSQL
- Run the project
- Marten - Transactional Document DB using PostgreSQL
- Quick Start - Marten Quick Start
- Event Sourcing - Article by Martin Fowler