Created
February 15, 2016 20:05
-
-
Save jameslmartin/ce21257b71168fad016c to your computer and use it in GitHub Desktop.
Small node app for serving files
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
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