Share your repls and programming experiences

← Back to all posts
Creating a Web Server With Node.js
[deleted]

We already know how Node.js can be used for back-end programs, but what about for websites? In this tutorial, you'll see how we can use Node.js to display an HTML page and displaying information only accessible with Node.js. Enjoy!

Comments
hotnewtop
runtimerror (0)

nice but why not using express ?

[deleted]

Good idea, @runtimerror! I will try that.

runtimerror (0)

Otherwise @SharpCodeDev, I think that making a nodejs server with only built-in-modules is very good because it shows a good understanding of the language, so well done !
Btw I didn't know the notice before.

[deleted]

@runtimerror LOL thanks. This was just a tutorial kind of thing in a real situation I probably would use express, though.

[deleted]

Plus Repl has boilerplate express code I just like to demonstrate this sort of thing.