Skip to content

daggerok/event-sourcing-and-cqrs-k

Repository files navigation

Kotlin EventSourcing and CQRS CI

See this README on GitHub pages

Build

setjdk 17 ; ./mvnw

Run and test web app

java -jar app/web-app/target/*jar

http post :8080/register-bank-account aggregateId=00000000-0000-0000-0000-000000000001 username=maksimko password=pwd
http get :8080/find-bank-account-registration-date/00000000-0000-0000-0000-000000000001
http get :8080/find-bank-account-activated-state/00000000-0000-0000-0000-000000000001

http post :8080/activate-bank-account aggregateId=00000000-0000-0000-0000-000000000001
http get :8080/find-bank-account-registration-date/00000000-0000-0000-0000-000000000001
http get :8080/find-bank-account-activated-state/00000000-0000-0000-0000-000000000001

TODO

  • implement web/web-mapdb-app
  • add application exception in api module and replace all RuntimeExceptions with custom application exceptions

RTFM