Skip to content

👉 Is the game really losing because of your team?

Notifications You must be signed in to change notification settings

DOWN-LEE/WhosFault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

whosfault

http://www.whosfault.me/ (production API pending approval)

Introduction

When playing a game called League of Legends, you often lose because your team members do not do well. But is it really because of your team? whosfault is a role statistics service that analyzes who lost a game.

frontend

image

The frontend is implemented based on React. As shown in the image above, users can search for a game nickname through the search bar, and the game history and analysis results of the user corresponding to the nickname are displayed.

Backend

A backend API is implemented based on Django. When a user's request comes in, it receives the user's information through the RIOT API, analyzes it, and returns it. However, the RIOT API has a rate limit. Even if a large number of users connect at the same time, the rate limit is not exceeded. Message queue is implemented in Redis, and Celery fetches tasks from the queue and processes them at a rate that does not exceed the rate limit. The implementation structure is shown in the image below.

image

How to deploy

sudo apt-get update
sudo apt install python3-pip
sudo pip3 install virtualenv
sudo apt install python3.7
virtualenv --python=python3.7 virtual

sudo apt-get install npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable # updating nodejs to newer version
sudo apt-get install npm
sudo npm install -g yarn
sudo npm install -g create-react-app
git clone & cd
backend > pip install -r requirements
sudo apt-get update
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev
sudo apt-get install python3.7-dev
sudo mysql -u root -p
CREATE DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
create user 'who'@'%' identified by [password];
grant all on mydb.* to 'who'@'%';
flush privileges;
celery -A backend beat -l info 
celery -A backend worker -l info 

About

👉 Is the game really losing because of your team?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published