Learn node.js on Mac

Install

http://nodejs.org/download/

nvm

$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ . ~/.nvm/nvm.sh
$ nvm install v0.8.3

nave

$ git clone https://github.com/isaacs/nave.git ~/.nave
$ ~/.nave/nave.sh use 0.8.3
$ curl http://npmjs.org/install.sh | sh

Install Express

$ npm install express@2.5.4 -g

Create an app

$ express forum -s -t ejs
$ cd forum
$ npm install

Run app

$ node app.js
Advertisements