Skip to content
This repository has been archived by the owner. It is now read-only.
This repository is deprecated. Head over to https://github.com/heroku/node-js-getting-started
JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 28cdfd8 Oct 11, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public add node logo and express static Apr 18, 2014
.gitignore ignore node_modules with .gitignore Jul 5, 2013
Procfile Add Procfile with basic web starter line to automatically start app. Apr 21, 2015
README.md Update format Oct 11, 2019
app.json Fix missing Node logo Mar 29, 2017
index.js Fix inconsistency in coding style Jul 24, 2015
package.json Update node to 4.0.0 and express to 4.13.3 Sep 10, 2015

README.md

This repository is no longer maintained!

For the most up to date test app to get you started on Heroku, head on over to node-js-getting-started.


node-js-sample

A barebones Node.js app using Express 4.

Running Locally

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

git clone git@github.com:heroku/node-js-sample.git # or clone your own fork
cd node-js-sample
npm install
npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

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:

You can’t perform that action at this time.