text: 'use strict';
  
  // Module dependencies.
  var express = require('express'),
      path = require('path'),
      fs = require('fs');
  
  var app = express();
  
  // Express Configuration
  require('./lib/config/express')(app);
  
  // Controllers
  var api = require('./lib/controllers/api'),
      index = require('./lib/controllers');
  
  // Server Routes
  app.post('/api/frontend/log', api.frontendLogger);
  
  // Angular Routes
  app.get('/partials/*', index.partials);
  app.get('/*', index.index);
  
  // Start server
  var port = process.env.PORT || 3000;
  app.listen(port, function () {
    console.log('Express server listening on port %d in %s mode', port);
  });
  
  // Expose app
  exports = module.exports = app;