Last active
May 22, 2017 00:19
-
-
Save alexpilugin/99802fe98b6875e0d93e08433f66acc9 to your computer and use it in GitHub Desktop.
OReilly. Ethan Brown. Web Development With Node And Express
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'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, { 'Content-Type': 'text/html' }); | |
res.end('<h1>Hello world!</h1>'); | |
}).listen(3000); | |
console.log('Server started on localhost:3000; press Ctrl-C to terminate....'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment