Skip to content

Instantly share code, notes, and snippets.

@nnance
Last active August 29, 2015 14:04
Show Gist options
  • Save nnance/728704d4634be3a0dcc4 to your computer and use it in GitHub Desktop.
Save nnance/728704d4634be3a0dcc4 to your computer and use it in GitHub Desktop.
Nodejs Simple Static Server
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