UNPKG

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