Skip to content

bootique-examples/bootique-kotlin-demo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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.

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