Created
February 7, 2017 19:05
-
-
Save rich-97/37a0b7bbc9bfff12b0b8066e281cc2fe to your computer and use it in GitHub Desktop.
A small server with nodejs in four lines.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('http').createServer((req, res) => { | |
res.writeHead(200, { 'Content-Type': 'text/plain' }); | |
res.end('Hello World!\n'); | |
}).listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment