start-express-loader
A promise-based service loader for Express.js
Installation
$ npm install start-express-loader --save
Example Usage:
First, install some things to load (for example, a Mongoose connection, or HTTP server):
npm install start-express-http start-express-mongoose --save
Then, in your javascript:
var app = services = 'http''mongoose'; // define our services here // will load 'start-express-http' and 'start-express-mongoose' // start HTTP serverstartapp services;
Your app is now up-and-running!
Hiding Log Output:
By default, this module output various logs to the command line. To hide this output, set the HIDE_SE_LOG
flag to true
:
$ HIDE_SE_LOG=true npm start
HIDE_SE_LOG
can equal true
or false
(default false
).