Skip to content

Instantly share code, notes, and snippets.

@devm33
Last active August 29, 2015 13:58
Show Gist options
  • Save devm33/10339157 to your computer and use it in GitHub Desktop.
Save devm33/10339157 to your computer and use it in GitHub Desktop.
Quickly serve a static folder using express
/* 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