Skip to content

Instantly share code, notes, and snippets.

@jameslmartin
Created February 15, 2016 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameslmartin/ce21257b71168fad016c to your computer and use it in GitHub Desktop.
Save jameslmartin/ce21257b71168fad016c to your computer and use it in GitHub Desktop.
Small node app for serving files
function p(d) {
console.log(d);
}
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/'));
var server = app.listen('9999', function() {
p('Express server listening on 9999');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment