Álvaro e364b20b1b
Some checks failed
ci / docker (push) Failing after 3m58s
remove old match repo
2024-06-23 12:59:05 +02:00
2024-05-14 02:32:37 +02:00
2024-06-23 12:59:05 +02:00
2024-04-30 22:07:19 +02:00
2024-05-13 02:22:04 +02:00
2024-05-13 02:22:04 +02:00
2024-04-30 22:07:19 +02:00
2024-06-18 01:26:48 +02:00
2024-05-13 02:22:04 +02:00
2024-05-12 01:51:52 +02:00
2024-06-22 17:30:53 +02:00
2024-05-31 00:45:22 +02:00
2024-06-22 17:30:53 +02:00

LoLAnalytics

Requirements

  • PostgreSQL
  • Elixir
  • RabbitMQ
  • MinIO

A docker-compose file is provided to run them locally.

Environment variables

The followign environment variables are required:

export RIOT_API_KEY="{API-KEY}"

export EX_AWS_SECRET_KEY="{SECRET}"
export EX_AWS_ACCESS_KEY="{ACCESS}"
export EX_AWS_ENDPOINT="{HOST}"
export EX_AWS_PORT="{PORT}" # minio defaults to 9000
export DATABASE_URL="ecto://{USERNAME}:{PASSWORD}@{HOST}/lol-analytics"
export SECRET_KEY_BASE="SECRET-KEY"

Running

mix deps.get
mix ecto.create && mix ecto.migrate
iex -S mix phx.server

Queueing a player

Scrapper.Queues.PlayerQueue.enqueue_puuid("PUUID")

The scrapper will retrieve player ranked history, enqueue it's teammates, and store every match in minio.

Processing

A Task to process the matches stored for a patch can be spawned by running:

LolAnalytics.MatchesProcessor.process_for_patch "14.12.594.4901"

Web site

A web site is exposed at localhost:4000.

Description
No description provided
Readme 586 KiB
Languages
Elixir 84.3%
HTML 8.9%
JavaScript 3.5%
Dockerfile 2.8%
CSS 0.2%
Other 0.3%