Created
February 29, 2016 20:44
-
-
Save spasiu/74dea402f8d613544f5a to your computer and use it in GitHub Desktop.
node 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
| require('http').createServer(function(request, response) { | |
| request.pipe(process.stdout) | |
| response.end(); | |
| }).listen(8000, function() { | |
| console.log('Server listening on: http://localhost:%s', '8000'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment