Home

Awesome

Plusminus

This is a demonstration application for the JSON Event Sourcing library. It has only one aggregate called counter. The only commands it understands are plus and minus, which update the field value in the aggregate.

To try it you need Kafka and MongoDB are running on localhost. You can download the Confluent platform and start Kafka with confluent start kafka. Then you have to install MongoDB.

You should create the following Kafka topics:

audit-dev
plusminus-counter-aggregate-dev
plusminus-counter-command-dev
plusminus-counter-event-dev
plusminus-counter-event-full-dev
plusminus-counter-reply-dev

The create_topics.sh script does this for you.

The configuration of the application is in conf/application.conf.

Build the application with mvn clean package and start it with java -jar target/pincette-plusminus-<version>-jar-with-dependencies.jar.

The tests can be run with mvn test. They are also run when you do the build.