Node.js Is Amazing In So Many Ways

July 6, 2010

There has been so many killer programming libraries released over the past five years it is hard to keep up with and have a chance to play with.   I have very been impressed by node.js. What a genius idea and execution. Bravo

node.js log0 width=

An example of a web server written in Node which responds with “Hello World” for every request.

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');

Previous post:

Next post: