This service is one of the backend services used for a showcase for a microservice architecture. The other services are language-service and country-service. The showcase is part of a guest lecture at the University Stuttgart. The documents to the lecture can be found here.
This project uses Quarkus, the Supersonic Subatomic Java Framework.
You can run your application in dev mode that enables live coding using:
mvn package quarkus:dev -Ddebug=5007
The application is packageable using mvn package
.
It produces the executable currency-service-1.0.0-SNAPSHOT-runner.jar
file in /target
directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/lib
directory.
The application is now runnable using java -jar target/currency-service-1.0.0-SNAPSHOT-runner.jar
.
The application can be provided as docker image by building the image with docker build --no-cache -t exxcellent/cps-currency-service .
The application can then be started with the command docker run -i --rm -p 8081:8081 exxcellent/cps-currency-service
and is available on localhost:8081
.