#Nodejs Server not working

6 messages · Page 1 of 1 (latest)

fresh delta
#

I've setup my server on a basic level, but when I try to send a simple GET request, it always gets rejected. Terminal says port is connected. localhost 5500 seems to return something, however.

On a side note, how can I have vscode have a runner like in scrimba? So i dont have to Ctrl+C, and start the server again everytime.

#

I wouldn't mind working in the scrimba IDE, but I couldn't figure out how to get the network tab back.

rancid moat
#

Damn!

visual talon
#

Yes Scrimba is helping us learn Front end with VSC and other external environments like netlify too but Backend only for Scrimba environment, how it works in the real world we gotta figure out ourselves

calm steeple
#

If you install nodemon and run "nodemon server.js" it will spin back up anew every time you save the file

calm steeple
#

Also, @fresh delta , the way you are calling server.listen is wrong. Try:
server.listen(PORT, () => console.log(Listening on ${PORT}));