poplar-glue

1.0.11 • Public • Published

Poplar Glue

Build Status Code Climate npm version Inline docs

Magic glue that makes poplar compoments work together

Loading Process

  1. Load config/environments/*.js and creating environment specific helpers
  2. Load config/config.js file
  3. Load config/initializers/*.js
  4. Load api/middlewares/*.js into poplar.get('middlewares')
  5. Load api/entities/*.js into poplar.get('entities')
  6. Load api/controllers/*.js into poplar.get('controllers')

Magic method for create Poplar instance

var glue = require('poplar-glue').init();
 
var apiV1 = glue.createFromApiBuilders('v1/*');

Pre-loaded compoments

var controllers = poplar.get('controllers');
var entities = poplar.get('entities');
var middlewares = poplar.get('middlewares');
var commons = poplar.get('commons');
var env = poplar.get('env');
var config = poplar.get('config');

LICENSE

  • poplar-glue is licensed under the MIT license

Author

Felix Liu

/poplar-glue/

    Package Sidebar

    Install

    npm i poplar-glue

    Weekly Downloads

    0

    Version

    1.0.11

    License

    MIT

    Last publish

    Collaborators

    • lyfeyaj