https://github.com/chrishoy/eventsourcing-marten-webapi
Simple example of how to use Marten for event sourcing with projections.
https://github.com/chrishoy/eventsourcing-marten-webapi
docker-compose dotnet marten postgresql
Last synced: 3 months ago
JSON representation
Simple example of how to use Marten for event sourcing with projections.
- Host: GitHub
- URL: https://github.com/chrishoy/eventsourcing-marten-webapi
- Owner: chrishoy
- Created: 2025-03-17T16:03:53.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-17T23:49:54.000Z (over 1 year ago)
- Last Synced: 2025-03-18T00:31:50.726Z (over 1 year ago)
- Topics: docker-compose, dotnet, marten, postgresql
- Language: C#
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Event Sourcing using Marten and PostgreSQL
This is a simple example of how to use Marten for event sourcing with projections.
- `docker-compose.yml`: This file contains the `PostgreSQL` configuration. Used by Marten to store document data.
- `src/EventSourcingMartenWebApi.csproj`: This is the Web Api project.
### How to run
1. Clone the repository
1. Modify `docker-compose.yml` to set the desired persistent volume location for `PostgreSQL` data
1. Run `docker-compose up -d` to start `PostgreSQL`
1. Run the project
### References
- [Marten](https://martendb.io/) - Transactional Document DB using PostgreSQL
- [Quick Start](https://martendb.io/events/quickstart.html) - Marten Quick Start
- [Event Sourcing](https://martinfowler.com/eaaDev/EventSourcing.html) - Article by Martin Fowler