- Make sure you have JAVA installed
- Install SDKMAN
- Install Kotlin lang using SDKMAN
- Install Gradle using SDKMAN
- Clone the repo:
git clone https://github.com/kanzitelli/kotlin-vertx-boilerplate.git
- Rename the folder if needed:
mv kotlin-vertx-boilerplate new_name
(note: if you want to rename the package then it would be safer to do it directly in the IntelliJ Idea) $ cd new_name/
$ gradle build
$ gradle run
- or to build a Jar and run in production mode
$ gradle shadowJar
$ java -jar build/libs/app-shadow.jar
$ heroku login
$ heroku create
$ git push heroku master
$ heroku open
- NOTE: Don't forget to go to Heroku dashboard β your app β Settings, and then add Config Vars:
PORT=80
HOST=https://your-app-name.herokuapp.com
For more information check this link.
/home{.json}
- returnsjson
with information gathered from this link with current time added to JSON response./hello{.json}
- returnsjson
with simple message{ message: "Hello, World!" }
./todos
- simple local (data stored in an array) implementation of todos CRUD actions .
- Building a Web application on top of Vert.x
- Kotlin coroutines π
- Querying remote services with the Retrofit2 (+ Kotlin coroutines await() for Retrofit2 Call)
- Using Gradle for enabling efficient workflow
- Manipulating JSON with Kotson
- Logging with Logback