GithubHelp home page GithubHelp logo

mrdotb / leagueofreplays Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 1.06 MB

:eye: Record & Replay league of legends games

Home Page: https://leagueofreplays.co

License: GNU Affero General Public License v3.0

Elixir 83.58% CSS 0.72% JavaScript 2.00% HTML 12.86% Dockerfile 0.68% Shell 0.14% Batchfile 0.02%
ash elixir league-of-legends liveview phoenix recording replays

leagueofreplays's Introduction

League of Replays

League of Replays

Record and replay league of legends game.
Youtube demo . Report Bug · Request Feature

Built With

Leagueofreplay is proudly powered by Phoenix and Elixir.

  • Phoenix
  • Ash
  • Elixir
  • Tailwind

Getting Started

Watching the youtube demo is a good way to understand how the project works and how you can setup it locally. To get a local copy up and running follow these simple example steps.

Running locally using Docker Compose

A Docker Compose reference file is provided in the repository. You can use it to run leagueofreplays with Docker Compose.

git clone https://github.com/mrdotb/leagueofreplays.git
cd leagueofreplays
cp .env.sample .env

Get your riot token on developer.riotgames.com. Add the token to the .env file on RIOT_TOKEN

docker compose --env-file .env up

You can now access the leagueofreplays on localhost:4000 The admin is on localhost:4000/admin

Running on a server using Docker Compose

Follow the step to run the project locally.

If you use a firewall you have to expose the port 4000, 3000 and 9000.

Be careful if you are not using a firewall these ports will be exposed to the world 5432, 9000, 9090, 3000, 4000.

Edit .env

HOST=your_domain
POSTGRES_PASSWORD= # a hard password
MINIO_ROOT_PASSWORD= # a hard password
S3_ACCESS_KEY= # cat /dev/urandom | tr -dc '[:alnum:]' | head -c 16
S3_SECRET_KEY= # cat /dev/urandom | tr -dc '[:alnum:]' | head -c 32
SECRET_KEY_BASE= # cat /dev/urandom | tr -dc '[:alnum:]' | head -c 64
ADMIN_PASSWORD= # cat /dev/urandom | tr -dc '[:alnum:]' | head -c 16

You can now access the leagueofreplays on your_domain:4000 The admin is on http://your_domain:4000/admin the login is admin and the password is the value your put in ADMIN_PASSWORD.

How to Dev ?

Prerequisites

To run leagueofreplays on your local environment you need to have:

  • Postgres
  • Elixir
  • Erlang
  • NodeJS

This project use asdf with the following tool-versions.

Install asdf and the differents plugins.

asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git

Install docker and docker compose

Clone the repo

git clone https://github.com/mrdotb/leagueofreplays.git

Then you can use install the elixir / erlang / nodejs version.

asdf install

Run postgres and minio

docker compose -f docker-compose.dev.yml up

Install project deps

npm i --prefix assets
mix deps.get

Run project

iex -S mix phx.server

Configuration

You can find the env configuration here.

Inspirations

Thanks to lol-replay, UGG and league of graphs

leagueofreplays's People

Contributors

mrdotb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pshoukry zeadhani

leagueofreplays's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Pin dependencies (actions/checkout, ash, ash_json_api, ash_oban, ash_phoenix, ash_postgres, ash_state_machine, aws, docker/build-push-action, docker/login-action, docker/metadata-action, ecto_sql, esbuild, exvcr, floki, gettext, ghcr.io/mrdotb/leagueofreplays, hackney, jason, libcluster, minio/mc, minio/minio, nebulex, open_api_spex, petal_components, phoenix, phoenix_ecto, phoenix_html, phoenix_live_dashboard, phoenix_live_reload, phoenix_live_view, plug_cowboy, postgres, postgrex, reactor, swoosh, tailwind, tailwind_formatter, telemetry_metrics, telemetry_poller, tesla)
  • Update dependency ash_phoenix to ~> 1.3
  • Update dependency ash_postgres to ~> 1.5
  • Update dependency ash_state_machine to ~> 0.2.0
  • Update dependency ecto_sql to ~> 3.11
  • Update dependency floki to == 0.36.2
  • Update dependency gettext to ~> 0.24
  • Update dependency jason to ~> 1.4
  • Update dependency nebulex to ~> 2.6
  • Update dependency phoenix to ~> 1.7.0
  • Update dependency phoenix_live_dashboard to ~> 0.8.0
  • Update dependency phoenix_live_reload to ~> 1.5
  • Update dependency phoenix_live_view to ~> 0.20.0
  • Update dependency plug_cowboy to ~> 2.7
  • Update dependency swoosh to ~> 1.16
  • Update actions/checkout action to v4.1.7
  • Update dependency ash to ~> 2.19
  • Update dependency ash_oban to ~> 0.2.0
  • Update dependency aws to ~> 0.14.0
  • Update dependency open_api_spex to ~> 3.20
  • Update dependency phoenix_ecto to ~> 4.5
  • Update dependency postgrex to == 0.18.0
  • Update dependency reactor to ~> 0.8.0
  • Update docker/build-push-action action to v5.4.0
  • Update docker/login-action action to v3.2.0
  • Update docker/metadata-action action to v5.5.1
  • Update dependency ash to v3
  • Update dependency ash_json_api to v1
  • Update dependency ash_phoenix to v2
  • Update dependency ash_postgres to v2
  • Update dependency aws to v1
  • Update dependency erlang to v27
  • Update dependency node to v20
  • Update dependency telemetry_metrics to v1
  • Update docker/build-push-action action to v6
  • Lock file maintenance

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

asdf
.tool-versions
  • elixir 1.16.0-otp-26
  • erlang 26.2.1
  • node 17.9.1
docker-compose
docker-compose.dev.yml
  • postgres 16-alpine
  • minio/minio RELEASE.2024-01-31T20-20-33Z
  • minio/mc undefined
docker-compose.yml
  • postgres 16-alpine
  • minio/minio RELEASE.2024-01-31T20-20-33Z
  • minio/mc undefined
  • ghcr.io/mrdotb/leagueofreplays latest
dockerfile
Dockerfile
github-actions
.github/workflows/build-image.yml
  • actions/checkout v4
  • docker/metadata-action v5
  • docker/login-action v3
  • docker/build-push-action v5
.github/workflows/test-docker-build.yml
  • insurgent-lab/is-in-pr-action v0.2.0@129df59687402c4a9c81a9a9e88d7448cdbba541
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
mix
mix.exs
  • ash ~> 2.17
  • ash_json_api ~> 0.34.2
  • ash_oban ~> 0.1.12
  • ash_phoenix ~> 1.2
  • ash_postgres ~> 1.3
  • ash_state_machine ~> 0.2.2
  • open_api_spex ~> 3.16
  • aws ~> 0.13.0
  • ecto_sql ~> 3.10
  • floki >= 0.30.0
  • gettext ~> 0.20
  • hackney ~> 1.18
  • jason ~> 1.2
  • libcluster ~> 3.3
  • nebulex ~> 2.5
  • petal_components ~> 1.9
  • phoenix ~> 1.7.10
  • phoenix_ecto ~> 4.4
  • phoenix_html ~> 4.0
  • phoenix_live_dashboard ~> 0.8.3
  • phoenix_live_view ~> 0.20.2
  • plug_cowboy ~> 2.5
  • postgrex >= 0.0.0
  • reactor ~> 0.4.1
  • swoosh ~> 1.3
  • telemetry_metrics ~> 0.6
  • telemetry_poller ~> 1.0
  • tesla ~> 1.8
  • esbuild ~> 0.8
  • exvcr ~> 0.11
  • phoenix_live_reload ~> 1.2
  • tailwind ~> 0.2.0
  • tailwind_formatter ~> 0.4.0
npm
assets/package.json
  • standard ^17.1.0
regex
Dockerfile
  • elixir 1.16.0
  • erlang 26.2.1
  • debian bullseye-20231009-slim

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.