Skip to content

Instantly share code, notes, and snippets.

@JoshuaTheMiller
Created October 23, 2020 14:02
Show Gist options
  • Save JoshuaTheMiller/5ffbe44400922abceba1e4f1bfc657cb to your computer and use it in GitHub Desktop.
Save JoshuaTheMiller/5ffbe44400922abceba1e4f1bfc657cb to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8080);
console.log('Server running at *:8080/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment