Projektmanagement-Game/README.md

46 lines
773 B
Markdown
Raw Normal View History

2021-05-20 10:25:08 +00:00
# Projektmanagement Game
2021-05-20 17:58:24 +00:00
2021-06-08 06:00:51 +00:00
## Docker
### Build
2021-05-20 17:58:24 +00:00
```
2021-05-26 14:59:19 +00:00
docker build Projektmanagement-Game/ -t pm-game
2021-05-20 17:58:24 +00:00
```
2021-06-08 06:00:51 +00:00
### Deploy
2021-05-26 14:59:19 +00:00
```
docker run -d -p 80:5000 pm-game
2021-06-08 06:00:51 +00:00
```
### Check if it works
Open `http://127.0.0.1` in your Browser
2021-06-11 07:24:40 +00:00
2021-06-08 06:00:51 +00:00
## Without docker
2021-06-11 07:24:40 +00:00
### Install dependencies
```
npm install
```
2021-06-08 06:00:51 +00:00
2021-06-11 07:24:40 +00:00
### (Optional) Use crendentials for monitoring
Set environment variables `WEBSOCKET_MONITOR_USERNAME` and `WEBSOCKET_MONITOR_PASSWORD`
`WEBSOCKET_MONITOR_USERNAME`: Username
2021-06-08 06:00:51 +00:00
2021-06-11 07:24:40 +00:00
`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
2021-06-08 06:00:51 +00:00
```
node Webservice/server.js
```
### Check if it works
Open `http://127.0.0.1:5000` in your Browser