Skip to content

The Event Source concept created in dotnet with Kurrent DB. Note: This project was created with the help of WindsurfAI IDE

License

Notifications You must be signed in to change notification settings

adrianokerber/eventsourcing-with-kurrentdb

Repository files navigation

Event Sourcing implementation

First steps

# First time use
docker run --name esdb-node -it -p 2113:2113 eventstore/eventstore:24.6.0-jammy --insecure --run-projections=All --enable-atom-pub-over-http
# Tip: If you already configured the container with the command above, next time you need to run the DB just run
docker start esdb-node

Access via http://localhost:2113/

API Endpoints

Create Payroll Loan Event

curl -X POST http://localhost:5170/api/payroll-loans \
  -H "Content-Type: application/json" \
  -d '{
    "id": "loan-123",
    "type": "PayrollLoanCreated",
    "data": "{\"amount\": 1000, \"interestRate\": 2.5, \"termMonths\": 12}",
    "createdAt": "2024-12-26T15:27:43-03:00"
  }'

Get All Payroll Loan Events

curl -X GET http://localhost:5170/api/payroll-loans

Run with Docker Compose

docker compose up -d
# If you want to rebuild images
docker compose up -d --build
# If you want to run eventstore separately
docker compose up -d --no-deps eventstore

About

The Event Source concept created in dotnet with Kurrent DB. Note: This project was created with the help of WindsurfAI IDE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors