Skip to content

Postgres JSON java application based on Spring Boot and Spring WebFlux with R2DBC, Postgres and nkonev r2dbc migration tool and Jakarta JSON-B Glassfish and yasson implementations

License

Notifications You must be signed in to change notification settings

daggerok/r2dbc-postgres-json

Repository files navigation

R2DBC EventStore CI

Postgres JSON java application based on Spring Boot and Spring WebFlux with R2DBC, Postgres and nkonev r2dbc migration tool and Jakarta JSON-B Glassfish and yasson implementations

Getting started

./mvnw -P pg-start
./mvnw spring-boot:run

curl -iv localhost:8080/event-stream/00000000-0000-0000-0000-000000000001
curl -iv localhost:8080/event-stream

curl -sSH'Content-Type:application/json' localhost:8080/append-event -d'{"aggregateId":"00000000-0000-0000-0000-000000000001","jsonData":"{\"aggregateId\":\"00000000-0000-0000-0000-000000000001\",\"eventType\":\"VisitorRegisteredEvent\",\"name\":\"Test visitor\"}"}'
curl -sSH'Content-Type:application/json' localhost:8080/append-event -d'{"aggregateId":"00000000-0000-0000-0000-000000000001","jsonData":"{\"aggregateId\":\"00000000-0000-0000-0000-000000000001\",\"eventType\":\"PassCardDeliveredEvent\"}"}'
curl -sSH'Content-Type:application/json' localhost:8080/append-event -d'{"aggregateId":"00000000-0000-0000-0000-000000000001","jsonData":"{\"aggregateId\":\"00000000-0000-0000-0000-000000000001\",\"eventType\":\"EnteredTheDoorEvent\",\"doorId\":\"IN-1\"}"}'
curl -sSH'Content-Type:application/json' localhost:8080/append-event -d'{"aggregateId":"00000000-0000-0000-0000-000000000001","jsonData":"{\"aggregateId\":\"00000000-0000-0000-0000-000000000001\",\"eventType\":\"EnteredTheDoorEvent\",\"doorId\":\"IN-2\"}"}'
curl -sSH'Content-Type:application/json' localhost:8080/append-event -d'{"aggregateId":"00000000-0000-0000-0000-000000000001","jsonData":"{\"aggregateId\":\"00000000-0000-0000-0000-000000000001\",\"eventType\":\"EnteredTheDoorEvent\",\"doorId\":\"OUT-2\"}"}'

./mvnw -P pg-stop

RTFM

About

Postgres JSON java application based on Spring Boot and Spring WebFlux with R2DBC, Postgres and nkonev r2dbc migration tool and Jakarta JSON-B Glassfish and yasson implementations

Topics

Resources

License

Stars

Watchers

Forks

Languages