nl_tokens: ** init ( app options ) ** Initialize Angoose . This function should be called in the express app *
pl_tokens: function init ( app , conf , <mask> ) { if ( this . initialized && ! force ) return ; //beans = {}; /** configurations*/ initialConfig ( conf ) ; logger . info ( "Angoose Initialization Start" ) ; logger . trace ( "Init options:" , conf ) ; /** connect to Mongo if necessary */ connectMongo ( options ) ; /** register initial hooks */ //registerHooks();         /** pre-load models/services from directories */ harvestModules ( options ) ; /** plugin extensions */ hookupExtensions ( ) ; /** build client side schemas */ generateClient ( ) ; /** configure the routes for handling RMI and client loading*/ /**@todo: middleware*/ configureRoutes ( app , options ) ; logger . info ( "Angoose Initialization Complete" ) ; }