Node comes with a full support for setting up a HTTP server. With a few lines of code you can build a simple web server.
#node#module#http
// Load HTTP moduleconsthttp=require('http');// Create an instance of a serverconstserver=http.createServer((req,res)=>{// Set a routeif(req.url==='/'){// Send back the response backres.write("Node HTTP module in action");res.end();}});// Start the server on a port 3000server.listen(3000);console.log('Server listening on port 3000');