From 52da65967b7806bf7191492f56b838c9e60b5228 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sun, 22 Mar 2020 00:51:34 +0100 Subject: [PATCH] Un-rename class files and change port to 8800 --- backend/src/{lobby.js => Lobby.js} | 2 +- backend/src/{state.js => State.js} | 3 +-- backend/src/{user.js => User.js} | 0 backend/src/app.js | 2 +- backend/src/index.js | 4 ++-- backend/src/service.js | 4 ++-- docker-compose.yml | 2 +- 7 files changed, 8 insertions(+), 9 deletions(-) rename backend/src/{lobby.js => Lobby.js} (98%) rename backend/src/{state.js => State.js} (94%) rename backend/src/{user.js => User.js} (100%) diff --git a/backend/src/lobby.js b/backend/src/Lobby.js similarity index 98% rename from backend/src/lobby.js rename to backend/src/Lobby.js index 7522216..536207b 100644 --- a/backend/src/lobby.js +++ b/backend/src/Lobby.js @@ -1,4 +1,4 @@ -const User = require("./user.js"); +const User = require("./User.js"); const timeline = require("./timeline.js"); module.exports = class Lobby { diff --git a/backend/src/state.js b/backend/src/State.js similarity index 94% rename from backend/src/state.js rename to backend/src/State.js index 12b98a9..b078181 100644 --- a/backend/src/state.js +++ b/backend/src/State.js @@ -1,5 +1,4 @@ -const Lobby = require("./lobby.js"); -const User = require("./user.js"); +const Lobby = require("./Lobby.js"); const {getRandomInt} = require("./util.js"); class State { diff --git a/backend/src/user.js b/backend/src/User.js similarity index 100% rename from backend/src/user.js rename to backend/src/User.js diff --git a/backend/src/app.js b/backend/src/app.js index 9b3f45a..e9bcbc9 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -1,6 +1,6 @@ const express = require("express"); const socketIO = require("socket.io"); -const state = require("./state.js"); +const state = require("./State.js"); const path = require("path"); const HOST = '0.0.0.0'; diff --git a/backend/src/index.js b/backend/src/index.js index 2a9c19c..27d757c 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -1,5 +1,5 @@ const service = require("./service.js"); -const state = require("./state.js"); +const state = require("./State.js"); const {io} = require('./app.js'); @@ -77,4 +77,4 @@ io.on('connection', socket => { lobby.seek(io, time); } }); -}); \ No newline at end of file +}); diff --git a/backend/src/service.js b/backend/src/service.js index f033119..a9431fe 100644 --- a/backend/src/service.js +++ b/backend/src/service.js @@ -1,5 +1,5 @@ -const User = require("./user.js"); -const state = require("./state.js"); +const User = require("./User.js"); +const state = require("./State.js"); /** * diff --git a/docker-compose.yml b/docker-compose.yml index 5dfb862..12189a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,4 +10,4 @@ services: environment: NODE_ENV: production ports: - - 8801:80 + - 8800:80