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

πŸ›  Vert.x + Kotlin (w/ coroutines) boilerplate πŸ› 

Notifications You must be signed in to change notification settings

starters-dev/kotlin-vertx-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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:

About

πŸ›  Vert.x + Kotlin (w/ coroutines) boilerplate πŸ› 

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages