Created
June 28, 2016 11:30
-
-
Save MuqThe2nd/80573ee207205148ab401e4655054e24 to your computer and use it in GitHub Desktop.
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( function (request, response) { | |
response.writeHead(200, { 'content-type' : 'application/json'}); | |
response.end(JSON.stringify({hello: 'Server'})); | |
}); | |
server.listen(3000); | |
console.log("Http server started"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment