Skip to content

Containerized Kotlin-based implementation of the Dropwizard starter guide built with Gradle

License

Notifications You must be signed in to change notification settings

jgasyna/dropwizard-kotlin

 
 

Repository files navigation

Containerized Dropwizard-Example written in Kotlin, built with Gradle

This is the official Dropwizard-Sample written in Kotlin and built with Gradle.

I'm also using the Gradle Shadow plugin to create a self-contained executable Jar, which is then executed in a Docker container.

Getting Started

Clone the repo & ./gradlew shadowJar.

Docker

Pre-Reqs: Docker, Docker-Compose.

Just docker-compose up -d in the root project dir.

If you docker ps you should be seeing a running container with the name dropwizard-sample.

Manual

You can either manually run the artifact by java -jar build/libs/dropwizard-sample.jar server sample.yml in the project root or just use ./gradlew run which does the heavy-lifting for you.

Demo

Just go ahead and check http://localhost:8080/api/hello-world?name=GitHub after doing either of the getting started parts.

About

Containerized Kotlin-based implementation of the Dropwizard starter guide built with Gradle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%