index.js
function setup(context) {
  if (GLOBAL.config) {
    console.log('already configured');
    console.trace();
    return;
  }
  if (!context) {
    context = require('./config.js');
  }

  GLOBAL.config = context.config;

  var svc = { pubsub: pubsub, auth: auth, indexer: indexer, pageCache: pageCache };

  GLOBAL.svc = svc;
  auth.setupUsers(GLOBAL, context.logins);
}
function setup(context) {
  if (GLOBAL.config) {
    console.log('already configured');
    console.trace();
    return;
  }
  if (!context) {
    context = require('./config.js');
  }

  GLOBAL.config = context.config;

  var svc = { pubsub: pubsub, auth: auth, indexer: indexer, pageCache: pageCache };

  GLOBAL.svc = svc;
  auth.setupUsers(GLOBAL, context.logins);
}
function setup ( context ) { if ( GLOBAL . config ) { console . log ( 'already configured' ) ; console . trace ( ) ; return ; } if ( ! context ) { context = require ( './config.js' ) ; } GLOBAL . config = context . config ; var svc = { pubsub : pubsub , auth : auth , indexer : indexer , pageCache : pageCache } ; GLOBAL . svc = svc ; auth . setupUsers ( GLOBAL , context . logins ) ; }
Set up the GLOBAL environment with configuration and services  Defaults to directory config and users if no context is passed.  pubsub will need to be started on its own.
Set up the GLOBAL environment with configuration and services Defaults to directory config and users if no context is passed . pubsub will need to be started on its own .