Git Product home page Git Product logo

loldashboard's Introduction

League of Legends Dashboard

This is a small app that allows a user to compare games from two different league of legends profiles in one screen

To get this project running locally

  1. Clone the repo from https://github.com/dakotawashok/loldashboard.git
  2. Make a new table in your local database for the app
  3. Copy the .env.example into a .env file and enter your database credentials
  4. Run composer install from the project root directory
  5. Run php artisan key:generate from the project root directory
  6. Run php artisan migrate:install from the project root directory important Make sure you run this from inside the virtual machine you're using
  7. Run php artisan migrate from the project root directory important Make sure you run this from inside the virutal machine you're using
  8. Run npm install from the project root directory
  9. Optional if you feel like having a nice looking URL like I do, make a new record in your hosts file
  10. Optional if you feel like having a nice looking URL like I do, change the APP_URL constant in your .env file to whatever you made the URL in step 8
  11. Optional Set up your vhost/apache .conf file if you need to. Make sure to restart apache after this step
  12. Download the zip from https://github.com/kevinohashi/php-riot-api
  13. Unzip the zip you just downloaded, and move it over to the ./Vendor/ folder
  14. In the ./vender/riotapi/php-riot-api.php file, replace INSERT_API_KEY_HERE with your actual riot api key
  15. Run npm run watch and go to your URL you set up and voila, you're good to go!

Notes

Since Riot comes out with updates to their game fairly often, sometimes the json files stored in ./public/jsonfiles/ get outdated. To counter this, I've made a quick little script that goes to their datadragon service and updates the json files that we have. From the project root directory, run:

php artisan updatestaticfiles {--update}

The --update option also goes into the javascript mixin file and changes the riot_api_version constant to the most up to date version from their website.


You might have to remove a line of code in the ./vendor/riotapi/php-riot-api.php file. It's line 381 and it should read echo("sleeping for".($interval - $timeSinceOldest + 1)." seconds\n");

loldashboard's People

Contributors

dakotawashok avatar

Watchers

 avatar

Forkers

benabdullah

loldashboard's Issues

Match Card Summoner Load

Loading another summoner from the Match Card doesn't load that summoner's name correctly on the opposite side.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.