/rating-update

Ratings for Guilty Gear: Strive

Primary LanguageCSSMIT LicenseMIT

rating-update

Ratings for Guilty Gear: Strive

How does this work?

Replays are pulled from Strive's servers using ggst-api-rs. They are then processed using a modified Glicko algorithm, which you can read more about here.

Customizing

Download Bulma's sass source files and place the contents in /static/sass. Use the sass executable via npm to generate styles .css from styles. scss.

Setting up config for development

Duplicate the .env.example file in the root directory and rename it to .env.

Change the default values to your own.

To get the STEAM_ID and STEAM_HEX you can use a site like steamidfinder, enter your steamname and then copy the steamID64 (Dec) and steamID64 (Hex) respectively.

To get the USER_ID try visiting ratingupdate and look up your own profile. Get the id in the url and convert it from hex into decimal.

Setting up a local database for development

To setup a database with some data you can run the following commands.

cargo run init # Setup the tables and indices of the database
cargo run #Start pulling matches and updating players.

#For release mode (faster, but slower to compile)
cargo run --release init
cargo run --release

Some other useful commands available are:

cargo run nothoughts #Will only run the website, without updating any data
cargo run pull #Pulls data, without updating anything

You can find more in main.rs

Once the database is setup you can start a local server that is accessible on localhost with cargo run. By default the server will continuously pull down new replays and update the rankings. If you do not want this behaviour you may run cargo run -- nothoughts instead to only start the website.