A basic snakehack starter kit written in java using maven, grizzly and jersey.
-
Clone repo to your development environment:
git clone [email protected]:USERNAME/snakehack-java.git $GOPATH/github.com/USERNAME/snakehack-java
cd $GOPATH/github.com/USERNAME/snakehack-java
-
Import the project into your ide. This repos uses intellij.
-
Run the RestInPeace server
-
Test the client in your browser: http://127.0.0.1:4242
download heroku cli https://devcenter.heroku.com/articles/getting-started-with-java#set-up
login to heroku
heroku login
create new heroku app, --region eu
is important for fast enough response times
heroku create yourfancyname --region eu
push to heroku
git push heroku master
delete heroku git
git remote rm heroku