This is a barebones Node.js app using the Express framework.
Asumming you have Node.js and Heroku Toolbelt installed on your machine:
git clone [email protected]:heroku/node-js-sample.git # or clone your own fork
cd node-js-sample
npm install
foreman start
Your app should now be running on localhost:5000.
heroku create
git push heroku master
heroku open
For more information about using Node.js on Heroku, see these Dev Center articles: