Code Monkey home page Code Monkey logo

leaguestats's Introduction

LeagueStats

Netlify Status LeagueStats.gg official Discord

The goal of leaguestats.gg is to provide global complete data for all League of Legends summoners.
Here is an example of stats for some summoner.

Screenshot

DigitalOcean Hosting

Installation

Development environment requirements :

You can use the docker-compose.yml file to quickly setup PostgreSQL and Redis in development.

Setting up the docker container:

> docker-compose up --build -d

Setting up your development environment on your local machine :

> git clone https://github.com/vkaelin/LeagueStats.git
> cd leaguestats/client
> npm install

# And

> cd leaguestats/server
> npm install
> cp .env.example .env # edit the values (see below for more info)
> node ace migration:run

Env Values

Before running the migrations, you need to add some details to the server .env:

  1. To generate the APP_KEY run node ace generate:key, copy and paste the value on the respective .env variable;

  2. Set the database variables PG_USER, PG_PASSWORD and PG_DB_NAME. If you are using docker, you can set as below:

PG_USER=root
PG_PASSWORD=root
PG_DB_NAME=leaguestats
  1. For the application work properly, you need a Riot API Key to set it on RIOT_API_KEY .env variable. To know more, take a look to their documentation on this link.

Useful commands

Running the app :

> cd client
> npm run dev

# And

> cd server
> npm run dev

Deploying the app :

> cd client
> npm run build
> npm run preview # to test the build locally

# And

> cd server
> npm run build
> node build/server.js

Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.

License

NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
https://creativecommons.org/licenses/by-nc-sa/4.0/

You are free to:

Share โ€” copy and redistribute the material in any medium or format

Adapt โ€” remix, transform, and build upon the material

Under the following terms:

NonCommercial โ€” You may not use the material for commercial purposes.

ShareAlike โ€” If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

leaguestats's People

Contributors

ajaquier avatar dependabot[bot] avatar lanaschuster avatar lazzzer avatar vkaelin avatar zkxjzmswkwl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaguestats's Issues

CANT SEARCH

when I finish npm run dev in client files, and build everything ,but I cant still search anything in website.what should I do?
THANK U VERY MUCH,is therer any problems in server?

Add mobile support

The UI is amazing, but it's missing proper mobile support. I could jump on this, would it be good to update to Vue3 since the project has a low amount of components as of now?

Respect names' capitalization

Hi, I would like to ask about change parsing summoners name.
I would like to see the respectation of summoner names' capitalization.
Like if someone has nick 'eXample' in db, the webstite could show 'eXample' more than 'Example'.

Problem with app_key

good night friend, i cloned your project and i'm trying to run it on my computer but there is a certain "APP_KEY" in the .env file that i don't know what i put and when i try to run the project it ends up giving an error, it could help me

image

500 error

Ekran Resmi 2020-03-08 14 28 00

Ekran Resmi 2020-03-08 14 28 44
Ekran Resmi 2020-03-08 14 29 07

this problem i not solve pls help

Detailed match data is not loading

See title for issue. Response of the match api is:

{
    "message": "Cannot read properties of undefined (reading 'squarePortraitPath')"
}

Appears for the latest matches of my account: Link

Request for a dockerfile to be made and uploaded to docker hub

Request for a dockerfile to be made and uploaded to docker hub!
Would love this to be in a all in one package (or 2, one for client one for server), would make it much easier to run and install!
(Understand redis etc still needing to be separate)

Update Search Functionality to Accommodate Riot IDs

Description

RiotGames is phasing out "Summoner Names" in favor of Riot IDs (Name#Tag). However, the current search functionality relies on "Summoner Names" for stat retrieval.

Files

  • summonerendpoint.ts

To Reproduce

Please search for a new Summoner after the RiotID transition

Tasks

Notes

While I've proposed a solution, I wonder if it's optimal.
I'm eager to update the search functionality, but need guidance and time. I am open to collaboration and feedback as well.

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.