/HerokuNodejs

heroku nodejs getting started

Primary LanguageHTML

heroku node-js-getting-started

A barebones Node.js app using Express 4.

This application supports the Getting Started with Node on Heroku article - check it out.

Running Locally

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

$ git clone https://github.com/JOHNBASS/HerokuNodejs.git 
$ cd HerokuNodejs
$ npm install
$ npm dev

Your app should now be running on localhost:5000.

Check Alive

http://localhost:5000/alive is server heartbeat

If work - service alive

http://localhost:5000/alive

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

Documentation

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