I get error when I try my code for Basic Node and Express - Start a Working Express Server
Here is the error:
// running test
Timeout has occurred
// tests completed
and here is my code.
var express = require('express');
var app = express();
// --> 7) Mount the Logger middleware here
// --> 11) Mount the body-parser middleware here
/** 1) Meet the node console. */
console.log("Hello World");
/** 2) A first working Express Server */
app.get('/', function(req, res) {
res.send('Hello Express');
});
// This would be part of the basic setup of an Express app
// but to allow FCC to run tests, the server is already active
app.listen(process.env.PORT || 3000 );
//---------- DO NOT EDIT BELOW THIS LINE --------------------
module.exports = app;
Any help would be greatly appreciated.