Projectmanagement quiz by TINF20C (DHBW Stuttgart)
Go to file
Fabian Thomé e5b7dd7989
Merge pull request #49 from H4CK3R-01/scoreboard-playernames
Added playernames to the scoreboard
2021-07-01 18:55:00 +02:00
data - Fixed line breaks in questions and answers 2021-06-15 08:59:05 +02:00
public Added playernames to the scoreboard 2021-07-01 18:39:23 +02:00
Webservice Added playernames to the scoreboard 2021-07-01 18:39:23 +02:00
.gitignore Added package.json 2021-05-26 17:10:14 +02:00
Dockerfile Minimize js and css files in docker build 2021-06-16 10:15:48 +02:00
minimize.sh Minimize js and css files in docker build 2021-06-16 10:15:48 +02:00
package-lock.json - Fixed line breaks in questions and answers 2021-06-15 08:59:05 +02:00
package.json - Fixed line breaks in questions and answers 2021-06-15 08:59:05 +02:00
README.md Fixed typo 2021-06-11 09:29:55 +02:00

Projektmanagement Game

Docker

Build

docker build Projektmanagement-Game/ -t pm-game

Deploy

docker run -d -p 80:5000 pm-game

Check if it works

Open http://127.0.0.1 in your Browser

Without docker

Install dependencies

npm install

(Optional) Use credentials for monitoring

Set environment variables WEBSOCKET_MONITOR_USERNAME and WEBSOCKET_MONITOR_PASSWORD

WEBSOCKET_MONITOR_USERNAME: Username

WEBSOCKET_MONITOR_PASDSWORD: bcrypt hashed password. Generate with

node
> require("bcrypt").hashSync("<your-password>", 10)

Linux & MacOS: export NAME="VALUE"

Windows: set NAME="VALUE"

Run

node Webservice/server.js

Check if it works

Open http://127.0.0.1:5000 in your Browser