alp-limosa

router limosa in alp

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10Apr 9, 2017Jan 12, 2016Minified + gzip package size for alp-limosa in KB

Readme

alp-limosa NPM version

router limosa in alp

Dependency ci Status Dependency Status

With Koa

import Koa from 'koa';
import config from 'alp-config';
import language from 'alp-language';
import router from 'alp-limosa';
import routerBuilder from './routerBuilder';

const controllers = new Map();
// controllers.set('site', SiteController);

const app = new Koa();
config(__dirname + '/config')(app);
language(app);
const handler = router(routerBuilder, controllers)(app);

// app.use(serve(__dirname + '../public/')); // static files
app.use(handler);

With Ibex

import Ibex from 'ibex';
import config from 'alp-config';
import language from 'alp-language';
import router from 'alp-limosa';
import routerBuilder from './routerBuilder';

const controllers = new Map();
// controllers.set('site', SiteController);

const app = new Ibex();
config(__dirname + '/config')(app);
language(app);
const handler = router(routerBuilder, controllers)(app);

app.use(handler);

With Alp (Node or Browser)

import Alp from 'alp';
import routerBuilder from './routerBuilder';

const controllers = new Map();
// controllers.set('site', SiteController);

const app = new Alp();
app.useRouter(routerBuilder, controllers);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.