add static file serving

This commit is contained in:
Asraelite 2016-03-21 12:56:32 +00:00
parent d0b5aae8f6
commit 4c6eb86794
6 changed files with 9 additions and 0 deletions

View file

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 245 B

Before After
Before After

View file

@ -1,5 +1,7 @@
'use strict';
const socketio = require('socket.io');
class GameServer {
constructor() {

View file

@ -1,12 +1,19 @@
'use strict';
const express = require('express');
class WebServer {
constructor() {
}
start() {
this.app = express();
let app = this.app;
app.use(express.static('public'));
app.listen(8080);
}
}