From fe4ef244f8ebec94c1ad8e7de31b06ab305032f4 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Fri, 11 Jun 2021 09:24:40 +0200 Subject: [PATCH] Updated README.md --- README.md | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5c7d1c9..f5f4862 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,46 @@ # 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 crendentials 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("", 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 \ No newline at end of file