Skip to content

Instantly share code, notes, and snippets.

@JairoDuarte
Created August 11, 2020 15:44
Show Gist options
  • Save JairoDuarte/5715c6a9d1d011e7299527620b035982 to your computer and use it in GitHub Desktop.
Save JairoDuarte/5715c6a9d1d011e7299527620b035982 to your computer and use it in GitHub Desktop.
var http = require('http');
//create a server object:
http.createServer(function (req, res) {
res.write('Hello World!'); //write a response to the client
res.end(); //end the response
}).listen(8080); //the server object listens on port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment