You can watch:
and read:
Event Sourcing basics - it teaches the event store basics by showing how to build your own Event Store on Relational Database. It starts with the tables setup, goes through appending events, aggregations, projectsions, snapshots and finishes with the Marten
basics. See more in here.
- Streams Table
- Events Table
- Appending Events
- Optimistic Concurrency Handling
- Event Store Methods
- Stream Aggregation
- Time Travelling
- Aggregate and Repositories
- Snapshots
- Projections
- Projections With Marten
-
Install git - https://git-scm.com/downloads.
-
Install .NET 6 - https://dotnet.microsoft.com/download/dotnet/6.0.
-
Install Visual Studio 2019, Rider or VSCode.
-
Install docker - https://docs.docker.com/engine/install/.
-
Make sure that you have ~10GB disk space.
-
Create Github Account
-
Clone Project https://github.com/oskardudycz/EventSourcing.NetCore, make sure that's compiling
-
Go to gitter channel https://gitter.im/oskardudycz/szkola-event-sourcing.
-
Check https://github.com/StackExchange/Dapper/, https://github.com/jbogard/MediatR, http://jasperfx.github.io/marten/documentation/
-
Open
BuildYourOwnEventStore.sln
solution. -
Docker useful commands
docker compose up
- start dockersdocker compose kill
- to stop running dockers.docker compose down -v
- to clean stopped dockers.docker ps
- for showing running dockersdocker ps -a
- to show all dockers (also stopped)
-
For the first part of workshop please go to ./docker and run:
docker compose up
. -
Wait until all dockers got are downloaded and running.
-
You should automatically get:
- Postgres DB running
- PG Admin - IDE for postgres. Available at: http://localhost:5050.
- Login:
admin@pgadmin.org
, Password:admin
- To connect to server Use host:
postgres
, user:postgres
, password:Password12!
- Login: