Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
gradle/wrapper Kotlin example initial commit Apr 25, 2016
src/main/java/io/vertx/example
.gitignore Kotlin example initial commit Apr 25, 2016
Procfile Documentation and mock data Apr 25, 2016
README.md Documentation fixes Apr 25, 2016
build.gradle Remove the reference to the staging repo in the gradle build files Sep 12, 2016
gradlew Kotlin example initial commit Apr 25, 2016
gradlew.bat Kotlin example initial commit Apr 25, 2016
settings.gradle Kotlin example initial commit Apr 25, 2016

README.md

Vert.x Kotlin Example

Basic JSON API written in Kotlin to demonstrate how it can be used with Vert.x.

This project is built on Gradle and is ready to be deployed on Heroku, hence it combines parts of the following examples:

Running

The most convenient way to run the project during development is as follows:

./gradlew run

That way, any changes to the classes will be picked up and re-deployed automatically.

Deploying

The application can either be deployed manually (with a jar file) or to Heroku.

Manually

You can generate a single "shadow jar" (more on that here) as follows:

./gradlew shadowJar

The jar file can now be retrieved from ./build/libs/app-shadow.jar and deployed onto your preferred platform.

Heroku

This project includes a custom Procfile to simplify deployment to Heroku, however you would need to place the contents of this example into a separate Git repository first (because the global Procfile in the root directory points to the heroku-example).

Once in your new Git repository, install the Heroku Toolbelt and issue the following:

heroku login
heroku create
git push heroku master

Note: All your changes must be committed to Git before issuing the last command.