Last active
August 29, 2015 14:20
-
-
Save mjurincic/773b1179b1f7ab1f7a99 to your computer and use it in GitHub Desktop.
Node presentaion examples
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
var http = require('http'); | |
var fs = require('fs'); | |
http.createServer(function(request, response){ | |
response.writeHead(200); | |
fs.readFile('index.html', function(err, contents){ | |
response.write(contents); | |
response.end(); | |
}); | |
}).listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment