To get started you'll need a working NodeJS development environment, and at least read the Heroku docs on deploying a NodeJS app.
This client uses Express4 for easy route management, read up on the docs to learn more about reading incoming JSON params, writing responses, etc.
Fork and clone this repo:
git clone firstname.lastname@example.org:stair-ch/snakehack-node.git cd snakehack-node
Install the client dependencies:
.env file in the root of the project and add your environment variables (optional).
Run the server:
nf start web
Test the client in your browser: http://localhost:5000
Click the Deploy to Heroku button at the top or use the command line commands below.
Create new NodeJS Heroku app,
--region eu is important for faster response times:
heroku create [APP_NAME] --region eu
Push code to Heroku servers:
git push heroku master
Open Heroku app in browser:
Or go directly via http://APP_NAME.herokuapp.com
View/stream server logs:
heroku logs --tail