Backend code to support highlander-app
- Docker
- Kotlin 1.2
- SpringBoot
- H2 inMemory Database
As Highlander server is a SpringBoot application you can find bellow both ways which was tested.
Make sure you have at minimum jdk8 installed in your system
./gradlew bootRun
As highlander-server is an SpringBoot app we should generate jar file before build our docker image, to do that, use follow command
./gradlew bootRepackage
Then we can build our image using
docker build . -t highlander_server:1.0
So, now your have highlander_server image in your docker image catalog, so you can run it using
docker run -p 8080:8080 --name some_highlander highlander_server:1.0
To check if your application is running you may use CURL to get health infomartion
curl -s http://localhost:8080/healthcheck