StartRNR/INSTALL.md

39 lines
1.1 KiB
Markdown
Raw Normal View History

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).
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:
- A command-line flag `--auth`.
- An environment variable `AUTH_TOKEN`,
2023-10-13 18:15:10 -04:00
- A file `auth.txt` within the config directory (see the [README](README.md) for
a list of directories in each OS).
2023-09-23 03:37:22 -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
StartRNR is written in Rust, so install the [Rust
2023-10-13 18:15:10 -04:00
toolchain](https://www.rust-lang.org/tools/install).
2023-09-23 03:37:22 -04:00
In addition, StartRNR needs these run-time dependencies:
2023-09-23 03:37:22 -04:00
- [OpenSSL](https://www.openssl.org/)
- [SQLite](https://www.sqlite.org/)
## Step 3: Compiling
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
cargo install --git https://github.com/kiana-S/StartRNR
2023-09-23 03:37:22 -04:00
```