Skip to content

VictorHLi404/TFT-Database-Builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image This is an open-source tool used for generating TFT statistics databases in PostgreSQL using Entity Framework Core and ASP.NET 9.0. Currently, it is being used to generate statictics for Four-Two, a publically available TFT practice tool which calls on a private instance of a database generated using this tool via AWS Lambda. Four-Two can be found at and played at this link here.

Currently, the tool primarily focuses on generating winrate placements for teams and individual champions dependent on items and tier. It supports fuzzy matching of teams (e.g one champion replaced and/or removed/added), which allows for richer insights to be made by GIN indexing.

To run the application sucessfully, it is necessary to configure the following user secrets in ASP.NET INSIDE of the Builder.Cli project:

  1. A valid database connection string at [connectionStrings:DefaultConnection]
  2. A valid Riot Games API token at [ApiKeys:RiotApiKey]
  3. An initial PUUID (player id) at [ApiKeys:InitialPUUID]. Please read the official Riot Developer Portal for more information on how to get an ID.

Once user secrets have been set, run the project in VS Code Run and Debug, or inside of the Builder.Cli command line with ASPNET_ENVIRONMENT=Development.

A database MUST be first initialized by another means. This tool is meant to connect to an existing database created via PgAdmin or some other tool.

The tool works by combining the /tft/match/v1/matches/by-puuid/{puuid}/ids endpoint that provides match IDs with /tft/match/v1/matches/{matchId} that provides actual match data, including the PUUIDs of players. A BFS queue is then created of all of the match ids and processed accordingly.

A Thread.Sleep() is hardcoded to prevent rate limiting from Riot Games servers. This can be adjusted manually depending on the level of API token you possess.

About

A TFT Statistics Database Builder made using PostgreSQL and Entity Framework Core.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages