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 git@github.com:heroku/node-js-sample.git # or clone your own fork
cd node-js-sample
npm install
foreman startYour 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:
- Getting Started with Node.js on Heroku
- Heroku Node.js Support
- Building a Real-time, Polyglot Application with Node.js, Ruby, MongoDB and Socket.IO
- Using Socket.IO with Node.js on Heroku
f0a7d6b6cf64f408601c1597064cea05835a5f61