UNPKG

332 BJavaScriptView Raw
1var express = require('express');
2var path = require('path');
3var serveIndex = require('serve-index');
4var app = express();
5
6var dir = path.join(__dirname, 'web');
7app.use('/', express.static(dir));
8app.use('/', serveIndex(dir, {'icons': true}));
9
10app.listen(3000);
11
12console.log('Server started: http://localhost:3000/');
\No newline at end of file