Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created June 5, 2020 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/74a878bab5b38d3ee64a82f6902338e3 to your computer and use it in GitHub Desktop.
Save uno-de-piera/74a878bab5b38d3ee64a82f6902338e3 to your computer and use it in GitHub Desktop.
const http = require('http');
const requestListener = function (req, res) {
res.writeHead(200);
res.end('Hola Mundo');
}
const server = http.createServer(requestListener);
server.listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment