@nodulus/core
v2.0.6
Published
core http component for nodulus using express
Downloads
34
Readme
@nodulus/core
Installation
$ npm install @nodulus/core
Philosophy
the nodulus core lets you choose from popular nodejs frameworks, using the application configuration file.
config key
{
framework: 'express'|'hapi'|'koa'
}
framework agnosticism is acheieved by using a common interface to either of the configurated frameworks.
usage
var core = require('@nodulus/core');
//core object contains the framework app.
core.use('/path', function(req,res){
});
core.use('/path', core.static('/filepath'));
configuration
set the default page using the configuration:
defaultPage: "public/default.html"