INSTALLING

Getting node.js running as a localhost listener for local development and testing couldn't be easier. Just follow these simple steps:
  1. Download the node.js binary files: http://node-js.prcn.co.cc/
  2. Select the latest "complete" version and then open the files in your zipper (such as 7zip) and extract them to a directory on your hard-disk. I chose C:\Program Files\nodejs for the extraction.
  3. Go to you System -> Environment Variables (via Control Panel) and add the install bin folder to your path. IE: Add "C:\Program Files\nodejs\bin" to your system path if you installed into "C:\Program Files\nodejs"
  4. You are now ready to deply and run node.js listeners.
To have a listener running you will need to have written a .js file to handle the web requests (explained in a separate post entry).

To test that node.js is running, just go to the Windows cmd prompt (system-> run-> cmd) and type node (followed by return key) to be presented with a > prompt. You should then be able to test it is working by typing (function() { return 'hello world'; })() at the node prompt and hit return. It should then display 'hello world' at the commmand line if node has installed correctly and is running OK. If not does not run, then check that your Windows path was correctly updated - you can do this by typing the word path at the Windows command prompt and hitting return.

If node is running, then CTRL-Break will take you back to the Windows command prompt, where you can type exit to close the window altogether.