We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e795e2 commit fb13bb2Copy full SHA for fb13bb2
1 file changed
server-bfe.js
@@ -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
-*/
+// Minimal BIBFRAME Editor Node.js server. To run from the command-line:
+// node server-bfe.jsy
+
6
var port = 8000;
7
-var util = require('util');
8
-var express = require('express')
9
-var serveStatic = require('serve-static')
+var express = require('express');
10
11
-var app = express()
+var app = express();
12
13
-app.use(serveStatic('__dirname', {'index': ['default.html', 'default.htm']}))
+app.use(express.static(__dirname + '/'));
14
app.listen(port);
15
16
-util.puts('BIBFRAME Editor running on ' + port);
17
-util.puts('Press Ctrl + C to stop.');
+console.log('BIBFRAME Editor running on ' + port);
+console.log('Press Ctrl + C to stop.');
0 commit comments