The (wannabe) game stats api. It allows you to get easily the stats for different games.
- League of Legends
- kills
- deaths
- assists
ps: if you want a new game or event, open a new issue and we will try to add it.
The response protocol is the same for all supported the games. The response is a JSON object with the following structure:
{
"stats": {
"in_game_event_name": total_count_of_events_for_the_player,
"in_game_event_name": total_count_of_events_for_the_player,
"in_game_event_name": total_count_of_events_for_the_player
},
"query_executed_at": "timestamp of the query"
}
Do you want to contribute to this project? Great! This is how you can contribute:
- Contribute to the codebase
- Report bugs
- Write new documentation
- Suggest new games
If you want to contribute to the codebase, follow those steps to install the project locally:
- Docker
Build the docker image with the command:
docker build -f deployment/local/Dockerfile --tag gamer-stats-api .
Run the image with the command:
docker run -e LEAGUE_OF_LEGENDS_API_KEY="your_lol_api_key" -p 8080:8080 gamer-stats-api
Check the health endpoint at localhost:8080/health
To open a new pull request and contribute to the codebase, you'll need first to fork the repository. Follow the instructions to fork and clone the forked repository locally:
https://docs.github.com/en/get-started/quickstart/fork-a-repo?tool=cli
After you have cloned the forked repository locally, you can start to work on the codebase. When you are done, you can open a new pull request.
If you are a beginner and want to learn how to develop, you can still help. Look for issues beginner friendly and try to solve them. If you have any questions, you can ask question in the issues and someone will try to help you.
This codebase is written in Golang, so if you never developed in the language, try the tour of go to learn the basics.
Also, if you want to learn how to use git, you can follow this tutorial.