Ask coding questions

← Back to all posts
How do i work with nodeJS in
akkshayTandon (1)

i have just started to learn nodeJS. But i am unable to understand how to create server in someone please guide me.

ch1ck3n (2863)

this is an example server using express

akkshayTandon (1)

@ch1ck3n thanks for reply.i didn't expected it so soon.
I was using port 80 which is localhost.
Do i need to install npm and nodemon packages?

ch1ck3n (2863)

@akkshayTandon If you're gonna host on replit you have to use 3000 as the port

and no, it should automatically install it for you.

ch1ck3n (2863)

@akkshayTandon can you press the checkmark next to my name if it helped

Coder100 (19274)

The host has to be, not Also, to use nodemon, some configuration is required.