Skip to content

Commit fb13bb2

Browse files
committed
v0.2.0
1 parent 4e795e2 commit fb13bb2

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

server-bfe.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
/*
2-
Minimal BIBFRAME Editor Node.js server. To run from the command-line:
3-
node server-bfe.js
4-
5-
*/
1+
// Minimal BIBFRAME Editor Node.js server. To run from the command-line:
2+
// node server-bfe.jsy
3+
64
var port = 8000;
7-
var util = require('util');
8-
var express = require('express')
9-
var serveStatic = require('serve-static')
5+
var express = require('express');
106

11-
var app = express()
7+
var app = express();
128

13-
app.use(serveStatic('__dirname', {'index': ['default.html', 'default.htm']}))
9+
app.use(express.static(__dirname + '/'));
1410
app.listen(port);
1511

16-
util.puts('BIBFRAME Editor running on ' + port);
17-
util.puts('Press Ctrl + C to stop.');
12+
console.log('BIBFRAME Editor running on ' + port);
13+
console.log('Press Ctrl + C to stop.');

0 commit comments

Comments
 (0)