A barebones Java app, which can easily be deployed to Heroku.
This application support the Salesforce Elevate Heroku workshop.
$ heroku create
$ git push heroku master
$ heroku open
If you want to run this application locally, you will need to have Java JDK and Maven build tool installed. You can also use the Foreman command from the Heroku Toolbelt to run this application as it would run on Heroku.
$ git clone https://github.com/heroku/java-getting-started.git
$ cd java-getting-started
$ mvn install
$ foreman start web
Your app should now be running on localhost:5000.
For more information about using Java on Heroku, see these Dev Center articles: