Skip to content

Instantly share code, notes, and snippets.

@veltman
Created April 30, 2014 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save veltman/bb4432b68cf82b957fbf to your computer and use it in GitHub Desktop.
Save veltman/bb4432b68cf82b957fbf to your computer and use it in GitHub Desktop.
Basic static server
var express = require("express");
var directory = require("serve-index");
var app = express();
app.use(express.static(__dirname));
app.use(directory(__dirname));
app.listen(80);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment