Skip to content

Instantly share code, notes, and snippets.

@stephencoe
Created January 24, 2015 08:12
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 stephencoe/67f92156af605dec5c86 to your computer and use it in GitHub Desktop.
Save stephencoe/67f92156af605dec5c86 to your computer and use it in GitHub Desktop.
Basic node static server
// npm install serve-static --save-dev
var connect = require('connect');
var serveStatic = require('serve-static');
connect().use(serveStatic(__dirname)).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment