var express = require('express');
var path = require('path');
var bodyParser = require('body-parser');


var app = express();

// Middleware
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

//Set up routes
require('./routes/index.js')(app, express);


//Set up static files
app.use(express.static(path.join(__dirname ,'../client')));

// Set up ports
var port = 3000
app.listen(port, function(){
  console.log('Server listening on port ' + port);
});


module.exports = app;

@@ -390,13 +390,34 @@
 rt =
+ process.env.PORT %7C%7C
  3000
+;
 %0Aapp

add env vars for PORT