Skip to content
Reactive, event driven microservices in Java
Java Kotlin Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
core-api
docker
gradle
img
market
monolith
rest-facade
trading
.gitignore
EXERCISES.md
README.md
WORKSHOP.md
build.gradle
gradlew
gradlew.bat
presentation.key
presentation.pdf
settings.gradle

README.md

eventdriven-examples

Reactive, event driven microservices in Java

Start axon server

docker-compose -f docker/docker-compose.yml up

Run app as a monolith

Run the main class of the monolith module in your IDE.

module class path
monolith nl.trifork.coins.monolith.Main monolith/src/main/java/nl/trifork/coins/monolith/Main.java

Run app as microservices

Run the main class of each of the modules individually:

module class path
market nl.trifork.coins.market.MarketApp market/src/main/java/nl/trifork/coins/market/MarketApp.java
trading nl.trifork.coins.trading.TradingApp trading/src/main/java/nl/trifork/coins/trading/TradingApp.java
rest-facade nl.trifork.coins.restfacade.RestFacadeApp rest-facade/src/main/java/nl/trifork/coins/restfacade/RestFacadeApp.java

Alternatively you could build jars and run them from the command line:

./gradlew clean build jar
java -jar market/build/libs/market.jar 
java -jar trading/build/libs/trading.jar 
java -jar rest-facade/build/libs/rest-facade.jar 

Build all modules

with tests:

./gradlew clean build

without tests:

./gradlew clean build -x test

Building docker images

./gradlew buildDockerImage

Load docker image from USB stick

docker image load -i axonserver.tar
You can’t perform that action at this time.