Sample REST Api written in java
Make sure you have Java installed. Also, install the Heroku Toolbelt.
$ git clone https://github.com/SKatiyar/handi.git
$ cd handi
$ ./gradlew stage
$ heroku local web
Your app should now be running on localhost:5000.
$ git push heroku master