2023-09-23 03:37:22 -04:00
|
|
|
# Installation
|
|
|
|
|
|
|
|
## Step 1: Authentication Token
|
|
|
|
|
|
|
|
In order to access start.gg's API, you must first have an authentication token
|
|
|
|
linked to your account. Instructions for generating one can be found in the
|
|
|
|
[developer API docs](https://developer.start.gg/docs/authentication).
|
|
|
|
|
2023-10-03 23:37:51 -04:00
|
|
|
Once you have an auth token, it must be provided to StartRNR. In order, the
|
2023-09-23 03:37:22 -04:00
|
|
|
program checks for a token in:
|
|
|
|
|
2024-08-14 20:45:22 -04:00
|
|
|
1. A command-line flag `--auth`.
|
|
|
|
2. An environment variable `AUTH_TOKEN`,
|
|
|
|
3. A file `auth.txt` within the config directory:
|
|
|
|
- Windows: `%APPDATA%\Roaming\startrnr/auth.txt`
|
|
|
|
- MacOS: `~/Library/Application Support/startrnr/auth.txt`
|
|
|
|
- Linux: `~/.config/startrnr/auth.txt`
|
2023-09-23 03:37:22 -04:00
|
|
|
|
2023-10-03 23:37:51 -04:00
|
|
|
The last method is recommended, as StartRNR can simply read from that file
|
|
|
|
whenever it needs to.
|
|
|
|
|
2023-09-23 03:37:22 -04:00
|
|
|
## Step 2: Dependencies
|
|
|
|
|
2024-08-14 20:45:22 -04:00
|
|
|
StartRNR requires these dependencies:
|
2023-09-23 03:37:22 -04:00
|
|
|
|
2024-08-14 20:45:22 -04:00
|
|
|
- [Rust](https://www.rust-lang.org/tools/install)
|
|
|
|
- [OpenSSL](https://github.com/openssl/openssl#build-and-install)
|
|
|
|
- [SQLite](https://www.sqlite.org/download.html)
|
2023-09-23 03:37:22 -04:00
|
|
|
|
2024-08-14 20:45:22 -04:00
|
|
|
Follow the instructions to download and install each.
|
2023-09-23 03:37:22 -04:00
|
|
|
|
|
|
|
## Step 3: Compiling
|
|
|
|
|
2023-10-03 23:37:51 -04:00
|
|
|
Once you have all the necessary dependencies, build and install StartRNR by
|
2023-09-23 03:37:22 -04:00
|
|
|
running the following command:
|
|
|
|
|
|
|
|
``` sh
|
2023-10-03 23:37:51 -04:00
|
|
|
cargo install --git https://github.com/kiana-S/StartRNR
|
2023-09-23 03:37:22 -04:00
|
|
|
```
|
|
|
|
|