$ npm install ferrum
Ferrum is simple and powerfull web server for node.js. It's designed for quick and simple development of high-performance application. Just try it.
npm install
Up-to date documentation can be found at http://jsdoc.info/sergez/ferrum/
var util = require('util');
var ferrum = require('ferrum');
function MainHandler () {
ferrum.RequestHandler.call(this);
this.get = function () {
this.write("Hello world!");
};
}
util.inherits(MainHandler, ferrum.RequestHandler);
ferrum.Application({
port: process.env.PORT,
address: process.env.IP,
routes: {
'^/$': MainHandler
}
}).run();
Please see the file called LICENSE.
© 2010 - cnpmjs.org x YWFE | Home | YWFE