Reactive, event driven microservices in Java
docker-compose -f docker/docker-compose.yml up
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 |
Alternatively you could build a jar and run it from the command line:
./gradlew clean build jar
java -jar monolith/build/libs/monolith.jar
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
with tests:
./gradlew clean build
without tests:
./gradlew clean build -x test
./gradlew buildDockerImage