Tuesday, April 10, 2012

Express.js













Express.js

High performance, high class web development for Node.js

ExpressJs is a small library for building web apps with JavaScript, written with node.js and V8. Express is  an insanely fast (and small) server-side JavaScript web development framework. It has a terse syntax because it’s based on Sinatra.

FEATURES

o    Robust routing
o    Redirection helpers
o    Dynamic view helpers
o    Application level view options
o    Content negotiation
o    Focus on high performance
o    View rendering and partials support
o    Environment based configuration
o    Session based flash notifications
o    Built on Connect
o    Executable for generating applications quickly
o    High test coverage


var app  = express.createServer();

app.get('/' function(req, res){
res.send('foo bar');

});

app.listen(3000)

See with a small code server can be created . it can accept requests and send back response. 

express got all the library that we need, we just have to require and all done . 

for more info refer that
http://expressjs.com/


No comments:

Post a Comment