Projectmanagement quiz by TINF20C (DHBW Stuttgart)
Go to file
Florian Kaiser f39f64dab4
Merge pull request #54 from H4CK3R-01/handle_player_left
Close card if active player left
2021-07-05 16:21:41 +02:00
data - Fixed line breaks in questions and answers 2021-06-15 08:59:05 +02:00
public Winning screen 2021-07-05 15:57:59 +02:00
Webservice Close card if active player left 2021-07-05 16:20:57 +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