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