Skip to content

Instantly share code, notes, and snippets.

@matthias-schuetz
Last active June 7, 2016 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthias-schuetz/e4a15b5cb7f3340955d4 to your computer and use it in GitHub Desktop.
Save matthias-schuetz/e4a15b5cb7f3340955d4 to your computer and use it in GitHub Desktop.
node.js simple web server
var connect = require('connect');
var serveStatic = require('serve-static');
var http = require('http');
var app = connect().use(serveStatic(__dirname));
http.createServer(app).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment