index.js
/**
 * Start a new Auth Server
 * @param {JSON} config - configuration of Auth Server
 */
Start a new Auth Server
@param {JSON} config - configuration of Auth Server
Start a new Auth Server @param { JSON } config - configuration of Auth Server
function server(config) {
  const CONFIG = config || require('./config');
  Mongo.connect('mongodb://localhost:27017/' + CONFIG.collection, (err, db) => {
    if (err) {
      throw err;
    }
    app.context.CONFIGURATION = CONFIG;
    app.context.db = db;
    app.context.collection = db.collection(CONFIG.collection);
    app.listen(CONFIG.port);
  });
}
function server ( config ) { const CONFIG = config || require ( './config' ) ; Mongo . connect ( 'mongodb://localhost:27017/' + CONFIG . collection , ( err , db ) => { if ( err ) { throw err ; } app . context . CONFIGURATION = CONFIG ; app . context . db = db ; app . context . collection = db . collection ( CONFIG . collection ) ; app . listen ( CONFIG . port ) ; } ) ; }
Start a new Auth Server
 @param {JSON} config - configuration of Auth Server
Start a new Auth Server @param { JSON } config - configuration of Auth Server
// configuration