var express = require('express')
var app = express()

app.get('/', function (req, res) {
  res.send('Server Executando');
})

app.get('/login', function (req, res) {
  res.send('logado');
})

app.get('/user', function (req, res) {
  res.send('usuario');
})


app.listen(5000, function () {
  console.log('Example app listening on port 3000!')
})
var express = require('express');
var app     = express();

app.set('port', (process.env.PORT || 5000));

//For avoidong Heroku $PORT error
app.get('/', function(request, response) {
    var result = 'App is running'
    response.send(result);
}).listen(app.get('port'), function() {
    console.log('App is running, server is listening on port ', app.get('port'));
});
Ajuste no Server