Giter Site home page Giter Site logo

cqrs-coffee-shop's Introduction

The Event sourcing, CQRS coffee shop

The purpose of this project is to explore how to implement Event sourcing and CQRS.

Running

gradle bootRun

# run with debug
gradle bootRun --debug-jvm 

Libraries

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!

Profiles

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

Override props

You can override props by creating a /application.yaml this file is .gitignored

Logging

@Slf4j lombrok logback fluent When to use what level? Error Warning Info debug

Testing

To run an individual test:

$ gradle test -Dtest.single=PropTest

To debug a test:

$ gradle test -Dtest.debug=true -Dtest.single=DemoSpec

Deployment

# create executable jar see <project-home>/bin/run*.sh for example 
gradle bootRepackage

References

https://blog.sebastian-daschner.com/entries/event_sourcing_cqrs_video_course

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.