so i’m starting backend today and got stuck on the app.get part, idk what am I doing wrong (I’m using Replit btw, if that makes difference)
let express = require(‘express’);
let app = express();
app.get(‘/’, (req, res) => {
res.send(‘Hello Express’);
});
console.log(‘Hello World’);
module.exports = app;
Maybe it sounds dumb but I have that problem with it at the beggining, be sure you are running the app with the green play button from replit
1 Like
unfortunately as incredible as I am, I thought it might be the case but it still doesn’t work
Back End Development and APIs
Basic Node and Express
Start a Working Express Server
that’s the challenge.
sorry but idk how i can share the full code with you
uhh i find a post from someone who had the same problem, it’s a bug from replit. Just needed to STOP and RUN without changing the code a couple times. Sorry for take your time and thanks
1 Like
Exact thing happened with me too
This worked for me, Thanks!
Click STOP and RUN each time you make a change.