Created
August 29, 2018 14:20
-
-
Save jwkidd3/23bbea6979aa4491575fc0ccda48f421 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var http = require('http'); | |
| var handleRequest = function(request, response) { | |
| console.log('Received request for URL: ' + request.url); | |
| response.writeHead(200); | |
| response.end('Hello World!'); | |
| }; | |
| var www = http.createServer(handleRequest); | |
| www.listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment