Skip to content

stair-ch/snakehack-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snakehack-java

A basic snakehack starter kit written in java using maven, grizzly and jersey.

How to start

  1. Fork this repo.

  2. 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
  1. Import the project into your ide. This repos uses intellij.

  2. Run the RestInPeace server

  3. Test the client in your browser: http://127.0.0.1:4242

Heroku

Deploy

Heroku-cli commands

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