lib/angoose.js
function init(app, conf, force) {
    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");
}
function init(app, conf, force) {
    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");
}
** init(app, options) **  Initialize Angoose. This function should be called in the express app  * @app: Express app, for now * @options: Angoose settings: - module-dirs, optional, default to ./models - url-prefix, optional, default to /angoose - mongo-opts, optional. Provide this if you want Angoose to make the connection