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.

10 lines
221 B

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