Analyzes League of Legends game stats for a summoner and gives granular rankings and advice on how to improve
To Setup:
-
Download & Virtual Box: https://www.virtualbox.org/wiki/Downloads
-
Download & Install Vangrant: https://www.vagrantup.com/downloads.html
-
Goto the folder you want to hold your local version in with cd [filepath]
-
Run in host commandline: vagrant init ubuntu/trusty64
-
Run in host commandline: vagrant up
-
Dpwnload and install putty: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
-
Run putty and connect to 127.0.0.1 as hostname and 2222 as port
-
Use vagrant as login and password.
-
Download all the things!
sudo apt-get update
sudo apt-get install git
sudo apt-get install python-virtualenv
sudo pip install Flask
sudo pip install tornado
sudo pip install Flask-RESTful
sudo apt-get install libevent-1.4
sudo apt-get install python-mysqldb
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu trusty main'
sudo apt-get update
sudo apt-get install mariadb-server
*Note you will be asked to insert a password at this step. Remember it! Use it in settings_local.py
sudo su
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
exit
sudo nano /etc/mysql/conf.d/tokudb.cnf
Remove the # on the line #plugin-load-add=ha_tokudb.so Hit ctrl+x and then Y to save changes
-
Goto your vagrant folder (Run: cd /vagrant/)
-
Pull the git down using: git clone [urltothetright]
-
Back to your machine!
-
Download your prefered IDE (such as sublime) and point it at lol-master-ease in the folder you saved your vagrant box in.
-
Create a new file settings_local.py! Do not make a mistake!
-
Copy the setup block over from settings.py into settings_local.py. Get your API key from developer.riotgames.com. Use the password you set earlier for root here as well.
-
Goto your vagrant file on your host machine and uncomment his line:
config.vm.network "forwarded_port", guest: 80, host: 8080
-
Run in host command line: vagrant reload
-
Reconnect to 127.0.0.1 port 22 with vagrant/vangrant.
-
Database setup time!
sudo mysql service start
echo "create database lol_master_ease" | mysql -uroot -p
mysql -uroot -p lol_master_ease < schemadump20150606.sql
*Note this filename might change as we update the schema.
-
sudo python /vagrant/lol-master-ease/site/server.py
-
Goto 127.0.0.1:8080 in your browser and you should now see your local branch!