Start on Heroku: Node.js

by wso2

GitHub Readme.md

cloud-heroku-samples

A barebones Node.js app using Express 4.

Running Locally

Make sure you have Node.js and the Heroku CLI installed.

$ git clone https://github.com/wso2/cloud-heroku-samples.git
$ cd cloud-heroku-samples
$ npm install express
$ node index.js

Your app should now be running on localhost:5000.

You can try in the browser http://localhost:5000/hello?name=john

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy to Heroku

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles: