Projektmanagement-Game/README.md

47 lines
780 B
Markdown
Raw Normal View History

2021-07-15 07:12:44 +00:00
# Wer wird Projektmanager 2021?
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:29:55 +00:00
### (Optional) Use credentials for monitoring
2021-06-11 07:24:40 +00:00
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
2021-07-15 07:12:44 +00:00
Open `http://127.0.0.1:5000` in your Browser