Escoto / KotlinSpringSample

Example on running a Kotlin + Spring API on Docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin + Spring + Docker

This is an example on how to build a simple Web API with Kotlin and run it on docker.

Take a look at my medium post, where I explain in detail how this repository works.

In short

You need:

  1. Docker
  2. Kotlin
  3. Maven

To run:

In a console pointing to the root directory of this project.

$> mvn compile
$> mvn package
$> docker build -t kotlinapihello .
$> docker run -d -p 8080:8080 --name workinginstance kotlinapihello

For the proper documentation on how all this is tied together please take a look at my medium post.

About

Example on running a Kotlin + Spring API on Docker.


Languages

Language:HCL 83.3%Language:Kotlin 14.5%Language:Dockerfile 2.2%