From d0413bbce9e2cec1f0a633462073a29845d787c4 Mon Sep 17 00:00:00 2001 From: Oskar Dudycz Date: Sat, 12 Mar 2022 21:38:45 +0100 Subject: [PATCH] Updated main exerices README --- Sample/EventStoreDB/ECommerce/README.md | 2 +- Sample/EventStoreDB/Simple/README.md | 2 +- Sample/MeetingsManagement/Readme.md | 2 +- Workshops/BuildYourOwnEventStore/Readme.md | 2 +- .../03-AppendingEvents.Marten/README.md | 2 +- .../README.md | 2 +- .../IntroductionToEventSourcing/README.md | 33 ++++++++++++++++--- .../03-AppendingEvents.Marten/README.md | 2 +- .../README.md | 2 +- 9 files changed, 36 insertions(+), 13 deletions(-) diff --git a/Sample/EventStoreDB/ECommerce/README.md b/Sample/EventStoreDB/ECommerce/README.md index 987728987..8ae3ad058 100644 --- a/Sample/EventStoreDB/ECommerce/README.md +++ b/Sample/EventStoreDB/ECommerce/README.md @@ -2,7 +2,7 @@ Sample is showing the typical flow of the Event Sourcing app with [EventStoreDB](https://developers.eventstore.com). -## Prerequisities +## Prerequisites 1. Install git - https://git-scm.com/downloads. 2. Install .NET Core 6.0 - https://dotnet.microsoft.com/download/dotnet/6.0. diff --git a/Sample/EventStoreDB/Simple/README.md b/Sample/EventStoreDB/Simple/README.md index 6eb406c87..10ee7de36 100644 --- a/Sample/EventStoreDB/Simple/README.md +++ b/Sample/EventStoreDB/Simple/README.md @@ -50,7 +50,7 @@ API integration tests for: - [Confirming shopping cart](./ECommerce.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs) as an example of updating an existing entity, -## Prerequisities +## Prerequisites 1. Install git - https://git-scm.com/downloads. 2. Install .NET Core 6.0 - https://dotnet.microsoft.com/download/dotnet/6.0. diff --git a/Sample/MeetingsManagement/Readme.md b/Sample/MeetingsManagement/Readme.md index 137beb09d..6f26d07b6 100644 --- a/Sample/MeetingsManagement/Readme.md +++ b/Sample/MeetingsManagement/Readme.md @@ -1,6 +1,6 @@ # Build Your Own Event Store Self-Paced Kit -## Prerequisities +## Prerequisites 1. Install git - https://git-scm.com/downloads. 2. Install .NET 5 - https://dotnet.microsoft.com/download/dotnet/5.0. diff --git a/Workshops/BuildYourOwnEventStore/Readme.md b/Workshops/BuildYourOwnEventStore/Readme.md index 18d3c57e2..2a4b3938e 100644 --- a/Workshops/BuildYourOwnEventStore/Readme.md +++ b/Workshops/BuildYourOwnEventStore/Readme.md @@ -1,6 +1,6 @@ # Build Your Own Event Store Self-Paced Kit -## Prerequisities +## Prerequisites 1. Install git - https://git-scm.com/downloads. 2. Install .NET 6 - https://dotnet.microsoft.com/download/dotnet/6.0. diff --git a/Workshops/IntroductionToEventSourcing/03-AppendingEvents.Marten/README.md b/Workshops/IntroductionToEventSourcing/03-AppendingEvents.Marten/README.md index 7eb9f32f4..056474c84 100644 --- a/Workshops/IntroductionToEventSourcing/03-AppendingEvents.Marten/README.md +++ b/Workshops/IntroductionToEventSourcing/03-AppendingEvents.Marten/README.md @@ -9,6 +9,6 @@ Run [docker-compose](../docker-compose.yml) script from the main workshop reposi docker-compose up ``` -After that you can use PG admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. +After that you can use PG Admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. - Login: `admin@pgadmin.org`, Password: `admin` - To connect to server click right mouse on Servers, then Register Server and use host: `postgres`, user: `postgres`, password: `Password12!` diff --git a/Workshops/IntroductionToEventSourcing/05-GettingStateFromEvents.Marten/README.md b/Workshops/IntroductionToEventSourcing/05-GettingStateFromEvents.Marten/README.md index fc456b9b2..64a02f46c 100644 --- a/Workshops/IntroductionToEventSourcing/05-GettingStateFromEvents.Marten/README.md +++ b/Workshops/IntroductionToEventSourcing/05-GettingStateFromEvents.Marten/README.md @@ -17,6 +17,6 @@ Run [docker-compose](../docker-compose.yml) script from the main workshop reposi docker-compose up ``` -After that you can use PG admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. +After that you can use PG Admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. - Login: `admin@pgadmin.org`, Password: `admin` - To connect to server click right mouse on Servers, then Register Server and use host: `postgres`, user: `postgres`, password: `Password12!` diff --git a/Workshops/IntroductionToEventSourcing/README.md b/Workshops/IntroductionToEventSourcing/README.md index 284d045b2..b5a4fcc39 100644 --- a/Workshops/IntroductionToEventSourcing/README.md +++ b/Workshops/IntroductionToEventSourcing/README.md @@ -5,9 +5,32 @@ 1. [Events definition](./01-EventsDefinition). 2. [Getting State from events](./02-GettingStateFromEvents). 3. Appending Events: - * [Marten](./03-AppendingEvents.Marten) - * [EventStoreDB](./04-AppendingEvents.EventStoreDB) + * [Marten](./03-AppendingEvents.Marten) + * [EventStoreDB](./04-AppendingEvents.EventStoreDB) 4. Getting State from events - * [Marten](./05-GettingStateFromEvents.Marten) - * [EventStoreDB](./06-GettingStateFromEvents.EventStoreDB) -5. + * [Marten](./05-GettingStateFromEvents.Marten) + * [EventStoreDB](./06-GettingStateFromEvents.EventStoreDB) +5. Business logic: + * [General](./07-BusinessLogic) + * [Marten](./08-BusinessLogic.Marten) + * [EventStoreDB](./09-BusinessLogic.EventStoreDB) + +## Prerequisites + +1. Install git - https://git-scm.com/downloads. +2. Install .NET Core 6.0 - https://dotnet.microsoft.com/download/dotnet/6.0. +3. Install Visual Studio 2022, Rider or VSCode. +4. Install docker - https://docs.docker.com/docker-for-windows/install/. +5. Open [Exercises.sln](./Exercises.sln) solution. + +## Running + +1. Run: `docker-compose up`. +2. Wait until all dockers got are downloaded and running. +3. You should automatically get: + - Postgres DB running for [Marten storage](https://martendb.io) + - 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! + - EventStoreDB UI: http://localhost:2113/` +4. Open, build and run [Exercises.sln](./Exercises.sln) solution. diff --git a/Workshops/IntroductionToEventSourcing/Solved/03-AppendingEvents.Marten/README.md b/Workshops/IntroductionToEventSourcing/Solved/03-AppendingEvents.Marten/README.md index 12f7a0f70..1cd3085eb 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/03-AppendingEvents.Marten/README.md +++ b/Workshops/IntroductionToEventSourcing/Solved/03-AppendingEvents.Marten/README.md @@ -9,7 +9,7 @@ Run [docker-compose](../../docker-compose.yml) script from the main workshop rep docker-compose up ``` -After that you can use PG admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. +After that you can use PG Admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. - Login: `admin@pgadmin.org`, Password: `admin` - To connect to server click right mouse on Servers, then Register Server and use host: `postgres`, user: `postgres`, password: `Password12!` diff --git a/Workshops/IntroductionToEventSourcing/Solved/05-GettingStateFromEvents.Marten/README.md b/Workshops/IntroductionToEventSourcing/Solved/05-GettingStateFromEvents.Marten/README.md index bb300bb63..aeeb86cf3 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/05-GettingStateFromEvents.Marten/README.md +++ b/Workshops/IntroductionToEventSourcing/Solved/05-GettingStateFromEvents.Marten/README.md @@ -26,6 +26,6 @@ Run [docker-compose](../../docker-compose.yml) script from the main workshop rep docker-compose up ``` -After that you can use PG admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. +After that you can use PG Admin (IDE for Postgres) to see how tables and data look like. It's available at: http://localhost:5050. - Login: `admin@pgadmin.org`, Password: `admin` - To connect to server click right mouse on Servers, then Register Server and use host: `postgres`, user: `postgres`, password: `Password12!`