You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
272 B

var express = require('express');
var ecstatic = require('../lib/ecstatic');
var http = require('http');
var app = express();
app.use(ecstatic({
root: __dirname + '/public',
showdir : true
}));
http.createServer(app).listen(8080);
console.log('Listening on :8080');