The Leagueify statistics service is responsible for collecting statistics for
players, teams, and leagues. The Leagueify statistics service uses
Go using version 1.23.0
.
- Gather match results and performance data from the League Service.
- Calculate and store player, team, and league stats.
- Provide advance analytics and reporting tools for users.
- Docker is installed and running.
Local development of the Leagueify statistics service uses docker for a consistent development environment. Running the Leagueify statistics service locally can be accomplished using commands found in the Makefile. During local development changes will trigger a live reload, eliminating the requirement to restart the docker image manually. This is accomplished by using the wonderful tool air. The most common commands have been outlined below:
# start leagueify docker image
make start
# stop leagueify docker image removing attached volumes
make clean
The Leagueify statistics service is ready for development once the banner output is visible within the terminal. By default the Leagueify statistics service api docs are accessible at http://localhost:6505/statistics/docs. The banner below was created using the Text to ASCII Art Generator by Patorjk.
leagueify-statistics-1 |
leagueify-statistics-1 | '||' '||''''| | ..|'''.| '||' '|' '||''''| '||' '||''''| '||' '|'
leagueify-statistics-1 | || || . ||| .|' ' || | || . || || . || |
leagueify-statistics-1 | || ||''| | || || .... || | ||''| || ||''| ||
leagueify-statistics-1 | || || .''''|. '|. || || | || || || ||
leagueify-statistics-1 | .||.....| .||.....| .|. .||. ''|...'| '|..' .||.....| .||. .||. .||.
leagueify-statistics-1 |
leagueify-statistics-1 | .|'''.| |''||''| | |''||''| '||' .|'''.| |''||''| '||' ..|'''.| .|'''.|
leagueify-statistics-1 | ||.. ' || ||| || || ||.. ' || || .|' ' ||.. '
leagueify-statistics-1 | ''|||. || | || || || ''|||. || || || ''|||.
leagueify-statistics-1 | . '|| || .''''|. || || . '|| || || '|. . . '||
leagueify-statistics-1 | |'....|' .||. .|. .||. .||. .||. |'....|' .||. .||. ''|....' |'....|'
leagueify-statistics-1 |