MorseTrackerSwCode/server/server.js

16 lines
341 B
JavaScript
Raw Normal View History

2019-02-02 04:35:06 +00:00
var StaticServer = require('./static-server');
var expressWs = require('express-ws');
var app = require('express')();
expressWs(app);
var staticServer = new StaticServer();
app.use('/', staticServer);
var port = process.env.PORT || 8080
app.listen(port, function () {
console.log('Open MCT hosted at http://localhost:' + port);
});