text: 'use strict';
  
  /*
   * Defining the Package
   */
  var Module = require('meanio').Module,
    favicon = require('serve-favicon'),
    express = require('express');
  
  var _System = new Module('system');
  
  /*
   * All MEAN packages require registration
   * Dependency injection is used to define required modules
   */
  _System.register(function(app, auth, database) {
  
    //We enable routing. By default the Package Object is passed to the routes
    _System.routes(app, auth, database);
  
    _System.aggregateAsset('css', 'common.css');
  
    // The middleware in config/express will run before this code
  
    // Set views path, template engine and default layout
    app.set('views', __dirname + '/server/views');
  
    // Setting the favicon and static folder
    app.use(favicon(__dirname + '/public/assets/img/favicon.ico'));
  
    // Adding robots and humans txt
    app.use(express.static(__dirname + '/public/assets/static'));
  
    return _System;
  });
  