An open API service indexing awesome lists of open source software.

https://github.com/daggerok/boot-event-sourcing

Simple event-sourcing java implementation using spring-boot, jpa, etc...
https://github.com/daggerok/boot-event-sourcing

eventsourcing eventstore non-blocking reactive spring-5 spring-boot spring-webflux webflux

Last synced: 28 days ago
JSON representation

Simple event-sourcing java implementation using spring-boot, jpa, etc...

Awesome Lists containing this project

README

          

= boot-event-sourcing image:https://travis-ci.org/daggerok/boot-event-sourcing.svg?branch=master["Build Status", link="https://travis-ci.org/daggerok/boot-event-sourcing"]

////
image:https://travis-ci.org/daggerok/boot-event-sourcing.svg?branch=master["Build Status", link="https://travis-ci.org/daggerok/boot-event-sourcing"]
image:https://gitlab.com/daggerok/boot-event-sourcing/badges/master/build.svg["Build Status", link="https://gitlab.com/daggerok/boot-event-sourcing/-/jobs"]
image:https://img.shields.io/bitbucket/pipelines/daggerok/boot-event-sourcing.svg["Build Status", link="https://bitbucket.com/daggerok/boot-event-sourcing"]
////

Read link:https://daggerok.github.io/boot-event-sourcing[project reference documentation]

//tag::content[]

Let's implement simple internet store where you can create,
paid order and where system can change it's state....

link:https://www.wiseweb.pl/blog-how-to-implement-event-sourcing-in-java/[motivation]
link:https://www.youtube.com/watch?v=Xu3Yn6Nx-iw[YouTube: KotlinConf 2017 - Why Spring Loves Kotlin by Sebastien Deleuze]

//end::content[]

//tag::build-and-run[]

=== build and run

.build, run and test using gradle / docker
[source,bash]
----
./gradlew
java -jar build/libs/*.jar
bash build/libs/*.jar

./gradlew build composeUp
./gradlew composeDown
----

.build, run and test using maven / docker
[source,bash]
----
./mvnw
java -jar target/*.jar
bash target/*.jar

bash mvnw docker-compose:up -P docker
bash mvnw docker-compose:down -P docker
----

//end::build-and-run[]

//tag::test[]

=== test

[source,bash]
----
http post :8080/api/
http post :8080/api/00000000-0000-0000-0000-000000000000
----

Initially generated by using link:https://github.com/daggerok/generator-jvm/[generator-jvm] yeoman generator (kotlin-spring-boot)

//end::test[]