Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkhess committed Oct 22, 2015
1 parent 4e795e2 commit fb13bb2
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions server-bfe.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
Minimal BIBFRAME Editor Node.js server. To run from the command-line:
node server-bfe.js
*/
// Minimal BIBFRAME Editor Node.js server. To run from the command-line:
// node server-bfe.jsy

var port = 8000;
var util = require('util');
var express = require('express')
var serveStatic = require('serve-static')
var express = require('express');

var app = express()
var app = express();

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

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

0 comments on commit fb13bb2

Please sign in to comment.