I currently have a goal of creating a sort of chat website. I just finished trying with PHP and long polling, which hit a resource limit on my webhost's server. I was told that I should use Node.js and that it can be hosted with Heroku.

I honestly have very little understanding of what Node.js or Heroku are. From what I've been told and have read after looking this up is that you can install Node.js and run apps online with it. The tutorial here: http://www.jamesward.com/2011/06/21/getting-started-with-node-js-on-the-cloud/ goes over installing and executing a script on heroku with Node.js. I have NO experience with command line, and wouldn't be able to do anything but copy the exact commands in that tutorial. I also don't understand when he accesses the script with localhost if the app is supposed to be on Heroku.

Can anyone explain what Heroku is, and provide some resources on how to use it? How can I work my way up to knowing how to use it?

  • 2
    Heroku is a branded server product (and company), it's main feature being ease of use for Ruby and Node.js developers (and more recently Java & Clojure), the best place to get help with it is to go to devcenter.heroku.com/articles/quickstart and then start asking questions (stackoverflow.com) about things you don't understand. - Rinse and repeat for nodejs.org.
    – ocodo
    Sep 27, 2011 at 23:28
  • @Slomojo Why did you make this a comment and not an answer? It obviously answers the question.
    – ntownsend
    Sep 30, 2011 at 19:11
  • @ntownsend - TBH I expected the question to get closed and moved somewhere else.
    – ocodo
    Oct 4, 2011 at 0:23

2 Answers 2


As for running a chat server, the chat example for socket.io can be up and running in about 5 minutes. Basically, copy-paste and you have real time chat.

You should know that Heroku does not support Websockets at this time. Socket.io will revert to xhr-polling or other techniques which really should work fine for chat, but it's not quite real time when using Heroku.

Apparently I even did it to test at one point in the past.


Heroku is a company and eponymous server product, whose main feature is ease of use for Ruby developers (they've more recently added Node.js, Java & Clojure support)

The best place to get help with it is to go to http://devcenter.heroku.com/articles/quickstart and then start asking questions about things you don't understand. (try asking very specific question on http://stackoverflow.com too.) - Rinse and repeat for nodejs.org.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.