Last active
August 29, 2015 13:58
-
-
Save devm33/10339157 to your computer and use it in GitHub Desktop.
Quickly serve a static folder using express
This file contains hidden or 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
/* Set up a local testing server to serve a static folder */ | |
var express = require("express"); | |
express().use(express.static(__dirname)).listen(5000, function(){ | |
console.log('http://0.0.0.0:5000 listening...'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment