Tell us what’s happening:
None of the soloution that you put in the course and in the hints works, and then I can’t continue the course.
solution: https://3000-freecodecam-boilerplate-6i1tlouasyg.ws-eu118.gitpod.io
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0
Challenge Information:
Basic Node and Express - Start a Working Express Server
ILM
2
what is your code please?
That’s my code
let express = require(‘express’);
let app = express();
app.get(“/”, function(req, res) {
res.send(‘Hello Express’)
console.log(‘Hello Express’)
});
app.listen(3000, ()=> {
console.log(“App is listening on port 3000…”)
})
You are not asked to start the server inside myApp.js
. app
is exported and the server is started in server.js
Your code goes inside myApp.js
between the two first lines of code and the export at the bottom in the initial starting code.
https://github.com/freeCodeCamp/boilerplate-express/blob/main/myApp.js