You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-27
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,8 @@ Table of Contents:
53
53
-[match specific access tokens](#match-specific-access-tokens)
54
54
-[Development](#development)
55
55
-[Docker](#docker)
56
-
-[NodeJS](#nodejs)
56
+
-[Install dependencies and run application in development mode](#install-dependencies-and-run-application-in-development-mode)
57
+
-[Build docker image](#build-docker-image)
57
58
58
59
## Getting Started
59
60
@@ -65,7 +66,9 @@ Run it with:
65
66
docker run --name tmt2 -d -p 8080:8080 jensforstmann/tmt2
66
67
```
67
68
68
-
Data will be written within the container to `/app/backend/storage`. To keep the files with different containers you can either specify a docker volume or a path on the local system:
69
+
Data will be written within the container to `/app/backend/storage`.
70
+
To keep the files with different containers
71
+
you can either specify a docker volume or a path on the local system:
69
72
70
73
```sh
71
74
# docker volume
@@ -79,7 +82,8 @@ The matches which are neither finished nor stopped will be loaded on application
79
82
80
83
### Create you first Match
81
84
82
-
After running the container you can open the web frontend: http://localhost:8080 (or at whatever ip/server your docker container runs on.)
85
+
After running the container you can open the web frontend: http://localhost:8080
86
+
(or at whatever ip/server your docker container runs on.)
83
87
84
88
85
89
@@ -88,14 +92,19 @@ _Example screenshot: Create a new match from the web frontend (both dark and lig
88
92
89
93
90
94
91
-
Even without an admin token you can create and manage matches (but only your own ones). If you want to know your admin token (a random one is generated at startup) either take a look at the `access_tokens.json` file or take a look at the first lines of the log output (`docker logs tmt2`).
95
+
Even without an admin token you can create and manage matches (but only your own ones).
96
+
If you want to know your admin token (a random one is generated at startup)
97
+
either take a look at the `access_tokens.json` file
98
+
or take a look at the first lines of the log output (`docker logs tmt2`).
92
99
93
100
94
101
### Ingame Chat Commands
95
102
96
103
While TMT watches a match the player ingame can use chat commands to communicate with TMT:
97
104
98
-
-`.team a` or `.team b` - you need to choose a team before you can execute any other commands, check the response in the chat to be sure you've joined the right one, also check the scoreboard (team names are visible there) if you're on the right side (CT/T)
105
+
-`.team a` or `.team b` - you need to choose a team before you can execute any other commands,
106
+
check the response in the chat to be sure you've joined the right one,
107
+
also check the scoreboard (team names are visible there) if you're on the right side (CT/T)
99
108
- during the map election process:
100
109
-`.ban` - ban a map from the map pool
101
110
-`.pick` - pick a map to be played
@@ -113,7 +122,8 @@ While TMT watches a match the player ingame can use chat commands to communicate
113
122
- during the match
114
123
-`.pause` - pause the match at the next freezetime (alias `.tech`)
115
124
-`.unpause` - set your team as ready (alias `.ready` & `.rdy`)
116
-
-`.tac` - like pause, but uses up a tactical timeout for that team (same as calling an ingame vote for a tactical timeout)
125
+
-`.tac` - like pause, but uses up a tactical timeout for that team
126
+
(same as calling an ingame vote for a tactical timeout)
117
127
118
128
119
129
@@ -139,7 +149,8 @@ TMT_SAY_PREFIX="[TMT] "
139
149
140
150
## API
141
151
142
-
See [`backend/swagger.json`](backend/swagger.json). You might want to copy its content and paste it into https://editor.swagger.io/.
152
+
See [`backend/swagger.json`](backend/swagger.json).
153
+
You might want to copy its content and paste it into https://editor.swagger.io/.
143
154
144
155
See also the [`examples`](examples) folder.
145
156
@@ -201,41 +212,67 @@ After starting the dev processes you can reach the backend & frontend at:
201
212
202
213
## Docker
203
214
204
-
Docker is recommended as it's easy to use and doesn't require any other software to be installed (if docker is already set up).
215
+
Docker is recommended as it's easy to use and doesn't require any other software to be installed
216
+
(if docker is already set up).
205
217
206
-
> Note for windows user: It's recommended to have docker installed **directly within** WSL (not using Windows Docker from WSL) or to run a Linux VM.
218
+
> *Note for windows user:*
219
+
>
220
+
> For better performance it's recommended to have docker (and this repo)
221
+
> installed **directly within** WSL (not using Windows Docker from WSL) or to run a Linux VM.
207
222
208
-
Init the dev environment:
209
-
210
-
./dev-container-init.sh
211
-
212
-
Start a docker container with port forwarding and hot reloading:
213
-
214
-
./dev-container-start.sh
223
+
```shell
224
+
# Linux:
225
+
./dev-container.sh
226
+
```
215
227
228
+
```powershell
229
+
# Windows
230
+
.\dev-container.ps1
231
+
```
216
232
217
233
218
-
## NodeJS
219
234
220
-
If you don't want to use docker or want to use NodeJS directly, you can do the following to setup a dev environment:
235
+
## Install dependencies and run application in development mode
0 commit comments