app-context-connie-firebase
v0.0.3
Published
connie-firebase initializer for app-context
Downloads
3
Readme
app-context-connie-firebase
connie-firebase initializer for app-context
Installation
$ npm install --save app-context-connie-firebase
Usage
var AppContext = require('app-context');
var connieFirebase = require('app-context-connie-firebase');
module.exports = AppContext.createContext({
configure: function() {
this.use(
AppContext.RunLevel.Configured,
// load the configuration from firebase using connie
connieFirebase('https://config-firebaseio.com/' + APP.environment)
);
// you can optionally use app-context-connie-firebase through app-context-initialize
var initialize = require('app-context-initialize');
this.use(
AppContext.RunLevel.Configured,
initialize(['connie-firebase', 'https://config-firebaseio.com/' + APP.environment])
);
}
});