Created
December 31, 2016 03:43
-
-
Save chriswebb09/89dde8a05c4db271d7cc1c738dffc5c6 to your computer and use it in GitHub Desktop.
Basic NodeJS Server
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 server = http.createServer(function(req,res) { | |
res.writeHead(200); | |
res.end('Hello world'); | |
}) | |
server.listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment