EventFlow.Example
DDD+CQRS+Event-sourcing examples using EventFlow following CQRS-ES architecture. It is configured with RabbitMQ, MongoDB(Snapshot store), PostgreSQL(Read store), EventStore(GES). It's targeted to .Net Core 2.2 and include docker compose file.
File Explorer
Download Latest Version (.zip)- dotnetcore.yml
- docker-compose.yml
- ExampleCommandHandler.cs
- ResetCommandHandler.cs
- ExampleCommand.cs
- ResetCommand.cs
- LogCommandBus.cs
- ExampleEvent.cs
- ExampleId.cs
- ResetEvent.cs
- ExampleReadModel.cs
- ExampleSagaCompletedEvent.cs
- ExampleSagaStartedEvent.cs
- ExampleSaga.cs
- ExampleSagaId.cs
- SagaExtension.cs
- SagaLocator.cs
- ExampleSnapshot.cs
- ExampleSnapshotVersion.cs
- ExampleSyncSubscriber.cs
- ExampleAggregate.cs
- ExampleJobs.cs
- CommandReturnResult.cs
- EventFlow.Example.csproj
- Program.cs
- PublishCommand.cs
- EventFlow.Tests.csproj
- IntegrationTestBase.cs
- IntegrationTests.cs
- EventStore.csproj
- EventStoreExtension.cs
- architecture_diagram.png
- ExampleAggregate.cs
- ExampleEvent.cs
- ExampleSyncSubscriber.cs
- Program.cs
- SyncEventHandler.csproj
- .dockerignore
- .gitignore
- _config.yml
- EventFlowExamples.sln
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/OKTAYKIR/EventFlow.Example
Downloads the entire project code from GitHub to your computer.
cd EventFlow.Example
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose -f build/docker-compose.yml up -d --build
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. .NET
MediumPrerequisites
cd EventFlow.Example
This project's files live in a subfolder, so move into it first.
dotnet restore
Downloads the packages the project depends on.
dotnet run
Builds the project and runs it immediately.
After dotnet run, check the message or address shown in the terminal.
// repository documentation
Was this content helpful?
(0 ratings)
