Skip to content

Instantly share code, notes, and snippets.

@MuqThe2nd
Created June 28, 2016 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MuqThe2nd/80573ee207205148ab401e4655054e24 to your computer and use it in GitHub Desktop.
Save MuqThe2nd/80573ee207205148ab401e4655054e24 to your computer and use it in GitHub Desktop.
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