Skip to content

poplarjs/poplar-glue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Magic glue that makes poplar compoments work together

Resources

License

Stars

Watchers

Forks

Packages

No packages published