text: 'use strict';
  
  // Set default node environment to development
  process.env.NODE_ENV =  process.env.NODE_ENV || 'develop';
  var config     = require('./config/environment');
  var express    = require('express');
  var mongoose   = require('mongoose');
  
  
  var app = express();
  
  //config
  require('./config/express')(app)
  //api
  require('./routes')(app);
  // handle database connections.
  // uncomment below to use mongo, and mongodb logging.
  // require('./db')();
  
  app.listen(config.port, config.ip, function() {
    console.log('Express server listening on %d, in %s mode.', config.port, app.get('env'));
  });
  