The purpose of this project is to explore how to implement Event sourcing and CQRS.
gradle bootRun
# run with debug
gradle bootRun --debug-jvm
http://projects.spring.io/spring-boot/
https://projectlombok.org - Spice up your java: Automatic Resource Management,
automatic generation of getters, setters, equals, hashCode and toString, and more!
dev - properties are loaded from application.yaml
test - properties are loaded from application-test.yaml
preprod - properties are loaded from application-preprod.yaml
production - properties are loaded from application-production.yaml
Helper scripts to run the app with different profiles
/bin/runTest.sh - packages the app and runs with the test profile activated /bin/runPrepod.sh - packages the app and runs with the preprod profile activated /bin/runProd.sh - packages the app and runs with the prod profile activated
You can override props by creating a /application.yaml this file is .gitignored
@Slf4j lombrok logback fluent When to use what level? Error Warning Info debug
To run an individual test:
$ gradle test -Dtest.single=PropTest
To debug a test:
$ gradle test -Dtest.debug=true -Dtest.single=DemoSpec
# create executable jar see <project-home>/bin/run*.sh for example
gradle bootRepackage
https://blog.sebastian-daschner.com/entries/event_sourcing_cqrs_video_course