demidko / service

Kotlin service template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service

Kotlin microservice template produces self-executable jar application. For brevity, double-space formatting is used. Ktor is included to mock Digital Ocean healthy checks.

Usage

  1. Make sure you are signed in to your GitHub account, then just click here to use template.
  2. App.kt file is entry point.

Build with Java

Execute ./gradlew clean build. Your jar will be located at ./build/libs with -all.jar postfix. Now you can run:

java -jar service-all.jar

Or, build with Docker

Execute docker build . -t service. Your image will be located at docker images -a. Now you can run:

docker run -v `pwd`:`pwd` -w `pwd` -it --rm -p 80:80 service

Deploy

You can edit deploy configuration at file deploy.template.yaml.

Deploy to DigitalOcean

About

Kotlin service template

License:MIT License


Languages

Language:Kotlin 88.5%Language:Dockerfile 11.5%