2023-04-25 18:53:49 +00:00
|
|
|
# @lfk/scripts
|
|
|
|
Some fun little scripts to automate tasks regarding the LfK Läufersystem.
|
|
|
|
|
|
|
|
## Setup 🛠️
|
|
|
|
```bash
|
|
|
|
pnpm i
|
|
|
|
```
|
|
|
|
|
2023-04-25 19:00:13 +00:00
|
|
|
## Scripts 📜
|
2023-04-25 18:53:49 +00:00
|
|
|
> All of the current scripts - explained
|
|
|
|
|
2023-04-25 18:55:24 +00:00
|
|
|
### Shared
|
|
|
|
#### Login
|
|
|
|
* Description: Authenticates the user against the backend while setting the OPENAPI objects properties
|
|
|
|
* Use-case: Used in all other scripts to reduce code duplication
|
|
|
|
* Config: Set the env vars
|
|
|
|
* Run: `node ./src/shared/login.js`
|
2023-04-25 18:53:49 +00:00
|
|
|
### Scans
|
|
|
|
#### Create fixed scans for group
|
|
|
|
* Description: Creates distance scans for all runners of a team or org
|
|
|
|
* Use-case: Schools that get their walk to the event location added to their total distance
|
|
|
|
* Config: Just set the org id or team id in the first lines of the script
|
|
|
|
* Run: `node ./src/scans/createFixedScansForGroup.js`
|