Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Project that uses bootique-kotlin and bootique-kotlin-configuration modules.

Notifications You must be signed in to change notification settings

bootique-examples/bootique-kotlin-demo

Repository files navigation

bootique-kotlin-demo

WARNING: the last version of Bootique that supports bootique-kotlin is 2.x (ok, technically, 3.0.M2). It is not distributed (or compatible) with Bootique 3.0 or newer.

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.

You can find different versions of framework in use at

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.bq.kts

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

About

Project that uses bootique-kotlin and bootique-kotlin-configuration modules.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages