Masters Of Mastery
This is my application for the Riot API Challange. It pulls data from the featured games and save the masteries of participants The mastery points will be combined and visualized beautifully.
Before you start the application for the first time or if some gems are missing, use
To setup the database just run the command
bin/rake db:migrate RAILS_ENV="production"
You'll have to pass 2 keys using the environment variables. The first is
SECRET_KEY_BASEand second is the
SECRET_KEY_BASEis just a long string for encrypting the the sessions. The
RIOT_API_KEYis your API-Key.
The server needs data to display the page. You can fetch the data for the first time with
bin/rake riot_tasks:championpoints_task RAILS_ENV="production". The server will automaticly fetch all 15 minutes. It's important that you set the the variable
When you set the variables and configured the database, you can start the server with
bin/rails server -p [YOUR PORT] -e production.
If you are using a windows system you'll have add
rubybefore the commands above. E.g:
ruby bin/bundle install