I've sung the praises of node.js, but I haven't yet explained how to actually bring this goodness into your life. Fair enough. Time to install node.
Famous last words maybe, but I'm going to devote just two short posts to the semi-interesting topic of installing things. It's all levitating outer space kitten games after that, I promise. So just bull through and you'll be glad you did.
I'm going to make a few assumptions:
1. You want to be able to try out node sites on your own computer. Yes, you could do everything in the cloud... and wait for Internet lag every time you want to test something. But would this completely defeat the purpose of using an environment as fast and fun to work with as node? Yes! It totally would!
2. You've got a Mac- or you're reasonably comfortable with the computer you do have and can use my step-by-step instructions as a rough guide to what you need to do. Both node.js and mongodb have installers for Windows, MacOS and Linux. (Actually, if you're on Ubuntu Linux, you can skip to the head of the class with a handy installer script I wrote at my awesome job. You're welcome.)
3. You don't have Homebrew or MacPorts or any other heavy duty geek oriented command line environment that already includes Node or offers it as a package. Or if you do, you're skipping this post. We'll use the official, easy installers. (Protip: if you do install Node and MongoDB via MacPorts, be prepared to wait a really long time.)
4. You have a decent text editor, one that can edit system files if necessary. If not, go get TextWrangler, a very solid free offering from the BBEdit people.
So much for exposition. After this it's just a chase scene.
Installing Node (on a Mac)
1. Go to nodejs.org. Click "Download," then "Macintosh Installer."
2. A pkg file will download. When the download is complete, open it and run the installer. The installer will install two things: node itself, and the npm package manager. npm lets you painlessly install optional modules for node. Which is good, because almost everything is an optional module.
3. Open a Terminal window. (Go to "Finder," then "Applications," then "Utilities," and launch "Terminal." Welcome to Unix! There's a nice terminal prompt tutorial here.)
And press enter.
If you get this:
-bash: node: command not found