Skip to content

NodeJS

July 12, 2010
tags:

Impressive Node

NodeJS is just getting hot. Some programmers who used PHP, JAVA, Ruby on Rails are now switching to nodeJS 12.

Why nodeJS is attractive?

(1) NodeJS is blood simple to create web applications.

The following lines able to create a Hello World web application.

——————————————————————————————–

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/’);

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/’);

——————————————————————————————–

(2) NodeJS is essentially one type of CommonJS. CommonJS is gaining popularity.

(3) It uses Google V8 event Javascript engine. It is fast and stable.

Some useful resources:

(1) Want to get started quickly?

A: Howtonode B: Nodeblogs C: Projects in GitHub D: Easy to follow tutorials  1 2 3 4 5

(2) NodeJS based Frameworks/Applications

A: Expressjs B: Mongoose C: Hummingbird D: Kiwi

More updates of NodeJS will be followed in the near future!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: