Node

Installation on Ubuntu
See: Latest node.js & npm installation on Ubuntu 12.04 $ sudo apt-get install python-software-properties $ sudo apt-add-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs $ node -v  # Check the version of node $ npm -v   # Check the version of npm

Installation of Express (Node.js framework) and how to use
$ sudo npm install -g express $ mkdir {app-dir} && cd {app-dir} $ express [option] {app-name} $ cd {app-name-dir} && npm install

Memo

 * .post function requires callback function so you should write like this:

In app.js app.post('/foo', routes.foo);

In foo.js exports.foo = function(req, res) { return function(req, res) { // callback function ... }; };