Skip to content

winston-wolf/lol-master-ease

Repository files navigation

lol-master-ease

Analyzes League of Legends game stats for a summoner and gives granular rankings and advice on how to improve

To Setup:

  1. Download & Virtual Box: https://www.virtualbox.org/wiki/Downloads

  2. Download & Install Vangrant: https://www.vagrantup.com/downloads.html

  3. Goto the folder you want to hold your local version in with cd [filepath]

  4. Run in host commandline: vagrant init ubuntu/trusty64

  5. Run in host commandline: vagrant up

  6. Dpwnload and install putty: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

  7. Run putty and connect to 127.0.0.1 as hostname and 2222 as port

  8. Use vagrant as login and password.

  9. 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
    
  10. Goto your vagrant folder (Run: cd /vagrant/)

  11. Pull the git down using: git clone [urltothetright]

  12. Back to your machine!

  13. Download your prefered IDE (such as sublime) and point it at lol-master-ease in the folder you saved your vagrant box in.

  14. Create a new file settings_local.py! Do not make a mistake!

  15. 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.

  16. Goto your vagrant file on your host machine and uncomment his line:

    config.vm.network "forwarded_port", guest: 80, host: 8080

  17. Run in host command line: vagrant reload

  18. Reconnect to 127.0.0.1 port 22 with vagrant/vangrant.

  19. 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.
    
  20. sudo python /vagrant/lol-master-ease/site/server.py

  21. Goto 127.0.0.1:8080 in your browser and you should now see your local branch!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published