// npm dependencies
var express = require('express');

// file dependencies
var config = require('./config');
var router = require('./router');

var app = express();

// run app through config
config.express(app);

// use router for app
router(app);


app.listen(process.env.PORT || 9000)
console.log('app listening on localhost:' + (process.env.PORT || 9000));


setTimeout(function(){
  var userSeed = require('./api/users/users.seed.js');
},400);

setTimeout(function(){
  var eventSeed = require('./api/events/events.seed.js');
},600);

setTimeout(function(){
  var ratingSeed = require('./api/ratings/ratings.seed.js');
},800)


// expose app 
module.exports = app;



//how SHOULD it work?  creating an event or a user should return that ID.  
@@ -244,17 +244,16 @@
 (app);%0A%0A
-%0A
 app.list

fix undefined error in server.js