Created
August 12, 2013 05:12
-
-
Save sooop/6208368 to your computer and use it in GitHub Desktop.
node.js sample
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 server = http.createServer(); | |
server.on('request', function(req, res) { | |
res.writeHead(200); | |
res.write('hello world'); | |
res.end(); | |
}) | |
server.listen(8088, function(){ | |
console.log("listening 8088... > http://localhost:8088"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment