Project that uses bootique-kotlin and bootique-kotlin-configuration modules.
Switch branches/tags
Nothing to show
Clone or download
Latest commit d70152d Dec 7, 2018

README.md

Build Status

bootique-kotlin-demo

A simple example that explains how to write Bootique application with Kotlin.

For additional help/questions about this example send a message to Bootique forum.

Prerequisites

  • Java 1.8 or newer.

Build the Demo

Here is how to build it:

git clone git@github.com:bootique-examples/bootique-kotlin-demo.git
cd bootique-kotlin-demo
./gradlew installDist

Run the Demo

Now you can check the options available in your app:

$ ./build/install/bootique-kotlin-demo/bin/bootique-kotlin-demo

NAME
      bootique-kotlin-demo-1.0-SNAPSHOT.jar

OPTIONS
      -c yaml_location, --config=yaml_location
           Specifies YAML config location, which can be a file path or a URL.

      -h, --help
           Prints this message.

      -H, --help-config
           Prints information about application modules and their configuration options.

      -s, --server
           Starts Undertow server.

And run it:

$ ./build/install/bootique-kotlin-demo/bin/bootique-kotlin-demo --server --config=classpath:config.kts

Then open http://localhost:9988 in browser.