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

8 years ago
  1. var express = require('express');
  2. var ecstatic = require('../lib/ecstatic');
  3. var http = require('http');
  4. var app = express();
  5. app.use(ecstatic({
  6. root: __dirname + '/public',
  7. showdir : true
  8. }));
  9. http.createServer(app).listen(8080);
  10. console.log('Listening on :8080');