Node.js Sample

by DonSeannelly

GitHub Readme.md

cloud-deployment-lab

A barebones Node.js app using Express 4. Availible routes are /, /greeting, and /todo.

Running Locally

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

git clone https://github.com/DonSeannelly/cloud-deployment-lab.git # or clone your own fork
cd cloud-deployment-lab
npm install
npm start

Your app should now be running on localhost:5000.

Deploying to Heroku (via Heroku CLI)

heroku create
git push heroku master
heroku open

Alternatively, you can deploy your own copy of the app using the web-based flow:

Deploy to Heroku

Documentation

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