Skip to content

Instantly share code, notes, and snippets.

@perfectacle
Last active January 25, 2019 08:36
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 perfectacle/6e3189ba55ecaa030068180885dad930 to your computer and use it in GitHub Desktop.
Save perfectacle/6e3189ba55ecaa030068180885dad930 to your computer and use it in GitHub Desktop.
Node.js Hello World Server
require('http').createServer((req, res) => {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World');
}).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment