"Okay, thats cool and all, but why should I use it?"
"But wait, how does that make it more efficient than multi threaded applications? Wouldnt a single thread be a bottle neck?
"Thats pretty cool, how do I get started then?"
First off, you’re going to need a computer with a non-windows operating system (so anything Unix, Linux, or Mac OS X will work). They’re working on a build to work with Windows, but its not quite done yet. Next, grab the source from Github here. We’re going to be building version v0.4.x. NodeJS only has two things needed for building and installing - python 2.4 (or higher) and libssl-dev (if you plan on using SSL encryption). Now to build Node, cd into the directory you checked out and run the following:
This will build Node and install it to your path. Now, all you need to do to run Node on the command line is just run:
$ node <your file name>.
Now, lets take a look at a simple NodeJS TCP server implementation: