Created
January 24, 2015 08:12
-
-
Save stephencoe/67f92156af605dec5c86 to your computer and use it in GitHub Desktop.
Basic node static server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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