Skip to content

Instantly share code, notes, and snippets.

@mabel
Created April 10, 2018 18:42
Show Gist options
  • Select an option

  • Save mabel/43d6e3cf5be2b9a7f5b69c1a787d18d1 to your computer and use it in GitHub Desktop.

Select an option

Save mabel/43d6e3cf5be2b9a7f5b69c1a787d18d1 to your computer and use it in GitHub Desktop.

Revisions

  1. mabel created this gist Apr 10, 2018.
    8 changes: 8 additions & 0 deletions server.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    var http = require('http');

    http.createServer(function (request, response) {
    response.writeHead(200, {'Content-Type': 'text/plain'});
    response.end('Hello World\n');
    }).listen(3000);

    console.log('Server running at http://localhost:3000/');