LeagueStats
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.
Installation
Development environment requirements :
- Node.js >= 12.0.0
- PostgreSQL
- Redis
You can use the docker-compose.yml
file to quickly setup Postgre and Redis in development.
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
> node ace migration:run
Useful commands
Running the app :
> cd client
> npm run dev
# And
> cd server
> npm run dev
Deploying the app :
> cd client
> npm run build
# 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.
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
oce endpoint not working anymore.
Riot changed the endpoint for the oce region, we need tu update it as well in our code.
Summoner example to test if it's working: https://leaguestats.gg/summoner/oce/homosinparis
Info about the new URL to use: https://twitter.com/RiotGamesDevRel/status/1542196592387584000?s=20&t=DYvvIyeCaBvZAatxsBAyOQ
The change needs to be made here: https://github.com/vkaelin/LeagueStats/blob/master/server/app/helpers.ts#L40
chore(deps): bump ejs and @vue/cli-service in /client
Removes ejs. It's no longer used after updating ancestor dependency @vue/cli-service. These dependencies need to be updated together.
Removes
ejs
Updates
@vue/cli-service
from 4.5.13 to 5.0.8Release notes
Sourced from
@vue/cli-service
's releases.... (truncated)
Changelog
Sourced from
@vue/cli-service
's changelog.... (truncated)
Commits
b154dbd
v5.0.80260e4d
fix: add devServer.server.type to useHttps judgement (#7222)4a0655f
v5.0.7beffe8a
fix: allow disabling progress plugin viadevServer.client.progress
558dea2
fix: supportdevServer.server
option, avoid deprecation warningbddd64d
fix: optimize the judgment on whether HTTPS has been set in options (#7202)ef08a08
v5.0.6fcf27e3
fixup! fix: compatibility with Vue 2.7a648958
fix: compatibility with Vue 2.798c66c9
v5.0.5Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Adding details on README about server .env variables
The problem: The readme didn't contain the details about how to generate the API_KEY and RIOT_API_KEY to properly run the application locally.
What was made: It was added to the readme file some details about the server .env variables (how to generate the API_KEY and how get and Riot Api Key).
Detailed match data is not loading
See title for issue. Response of the match api is:
Appears for the latest matches of my account: Link
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?
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /client
Bumps path-parse from 1.0.6 to 1.0.7.
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
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'.
chore(deps): bump acorn from 7.0.0 to 7.3.1 in /server
Bumps acorn from 7.0.0 to 7.3.1.
Commits
e265eae
Mark version 7.3.150fd1bc
Mark version 7.1.0 of acorn-looseee03be3
Mark version 7.3.04adea30
add optional chainingeec9b37
Fix parsing of ambiguous object pattern with a 'set' property with a default ...f66c4e7
Add type definitions for acorn.mjs (#954)304ae5e
Enable allowAwaitOutsideFunction in test262, update whitelist6d555e8
Mark verison 7.2.082ed10d
make test262 success on Windowsec7cbd1
Add nullish coalescingDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
chore(deps): bump acorn from 7.0.0 to 7.2.0 in /server
Bumps acorn from 7.0.0 to 7.2.0.
Commits
6d555e8
Mark verison 7.2.082ed10d
make test262 success on Windowsec7cbd1
Add nullish coalescingb4a6e52
Add support forimport.meta
f1c3592
Follow regexp validation as per tc39/ecma26239078e2cc
fix: check potentialArrowAt in maybeAsyncArrow020d8ea
Upgrade to Unicode 137987e41
Supportexport * as ns from "source"
cda280a
Add 6.4.1 to changelog44e52b2
Don't tokenize the token after a class or strict function as strictDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
chore(deps): bump acorn from 7.0.0 to 7.1.1 in /server
Bumps acorn from 7.0.0 to 7.1.1.
Commits
6d19489
Mark release 7.1.1793c0e5
More rigorously check surrogate pairs in regexp validatorb5c1787
Fix incorrect comment in regexp parser12ae8fe
Parameterize dummy value and exportisDummy
fa3ad8c
Further refine acorn-walk types1d50286
Fix some errors in walk types97801f0
Mark acorn-walk 7.1.1e9372c1
Further clean up walker typesde6edeb
Remove NarrowNode from walk.d.ts1d85e7c
Fix: acorn-walk type work with acorn'sDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
chore(deps): bump json5, @vue/cli-plugin-babel, @vue/cli-plugin-eslint and @vue/cli-service in /client
Bumps json5 to 2.2.2 and updates ancestor dependencies json5, @vue/cli-plugin-babel, @vue/cli-plugin-eslint and @vue/cli-service. These dependencies need to be updated together.
Updates
json5
from 0.5.1 to 2.2.2Release notes
Sourced from json5's releases.
... (truncated)
Changelog
Sourced from json5's changelog.
... (truncated)
Commits
14f8cb1
2.2.210cc7ca
docs: update CHANGELOG for v2.2.27774c10
fix: add proto to objects and arraysedde30a
Readme: slight tweak to intro97286f8
Improve example in readmed720b4f
Improve readme (e.g. explain JSON5 better!) (#291)910ce25
docs: fix spelling of Aseem2aab4dd
test: require tap as t in cli tests6d42686
test: remove mocha syntax from tests4798b9d
docs: update installation and usage for modulesUpdates
@vue/cli-plugin-babel
from 4.5.13 to 5.0.8Release notes
Sourced from
@vue/cli-plugin-babel
's releases.... (truncated)
Changelog
Sourced from
@vue/cli-plugin-babel
's changelog.... (truncated)
Commits
b154dbd
v5.0.84a0655f
v5.0.7ef08a08
v5.0.698c66c9
v5.0.5ca97fc2
v5.0.4dd53f26
v5.0.3a859b1f
v5.0.292d80a8
v5.0.1c913cdc
v5.0.075a6d69
v5.0.0-rc.3Updates
@vue/cli-plugin-eslint
from 4.5.13 to 5.0.8Release notes
Sourced from
@vue/cli-plugin-eslint
's releases.... (truncated)
Changelog
Sourced from
@vue/cli-plugin-eslint
's changelog.... (truncated)
Commits
b154dbd
v5.0.84a0655f
v5.0.7ef08a08
v5.0.698c66c9
v5.0.5ca97fc2
v5.0.4dd53f26
v5.0.3a859b1f
v5.0.292d80a8
v5.0.1c913cdc
v5.0.075a6d69
v5.0.0-rc.3Updates
@vue/cli-service
from 4.5.13 to 5.0.8Release notes
Sourced from
@vue/cli-service
's releases.... (truncated)
Changelog
Sourced from
@vue/cli-service
's changelog.... (truncated)
Commits
b154dbd
v5.0.80260e4d
fix: add devServer.server.type to useHttps judgement (#7222)4a0655f
v5.0.7beffe8a
fix: allow disabling progress plugin viadevServer.client.progress
558dea2
fix: supportdevServer.server
option, avoid deprecation warningbddd64d
fix: optimize the judgment on whether HTTPS has been set in options (#7202)ef08a08
v5.0.6fcf27e3
fixup! fix: compatibility with Vue 2.7a648958
fix: compatibility with Vue 2.798c66c9
v5.0.5Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Optimize mates SQL query
Right now this query can take 4-5s in production, we need to fix it.
https://github.com/vkaelin/LeagueStats/blob/30cad68af13995ffa601dd5b2a47554a9815ac3e/server/app/Repositories/MatchRepository.ts#L223
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)