Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Latest commit

 

History

History
45 lines (37 loc) · 2.14 KB

README.md

File metadata and controls

45 lines (37 loc) · 2.14 KB

Vert.x + Kotlin (w/ coroutines) boilerplate 🛠

Prerequisites

How to run:

  • 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 deployment

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

API ENDPOINTS

  • /home{.json} - returns json with information gathered from this link with current time added to JSON response.
  • /hello{.json} - returns json with simple message { message: "Hello, World!" }.
  • /todos - simple local (data stored in an array) implementation of todos CRUD actions .

What's included: