1.0.3 • Published 7 years ago

bemu-express-wrapper v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Bemu Express Wrapper

BemuExpress makes it easier to get started with an Express project

To install run

npm i --save bemu-express-wrapper

To use Simple Event in your project simply do Use the wrapper:

const BemuExpressWrapper = require('bemu-express-wrapper').wrapper;

Use the provided route template:

const BemuRoute = require('bemu-express-wrapper').route;

This module exports express:

const express = require('bemu-express-wrapper').express;

Example usage:

Example usage is provided in ./test/app.js

To create an express app do: const app = BemuExpress( // First array contains all the middleware of your app RequestLogger , // The second array contains all the root routes BemuExpressRoute('/api', DemoRouter) );

To run your app just do:

app.start(5000, ()=>{
    // Callback after start
});
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago