Skip to content

Instantly share code, notes, and snippets.

@davidbella
Created January 10, 2014 02:25
Show Gist options
  • Select an option

  • Save davidbella/8345968 to your computer and use it in GitHub Desktop.

Select an option

Save davidbella/8345968 to your computer and use it in GitHub Desktop.

Revisions

  1. David Bella revised this gist Jan 10, 2014. No changes.
  2. David Bella revised this gist Jan 10, 2014. No changes.
  3. David Bella created this gist Jan 10, 2014.
    9 changes: 9 additions & 0 deletions server.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    var http = require('http');

    var server = http.createServer(function(request, response) {
    response.writeHead(200, {'Content-Type': 'text/plain'});
    response.write('Hello World');
    response.end();
    })

    server.listen(3000);