Timewinder Rewind
TODO:
Available on https://timewinder-rewind.herokuapp.com/
Setup:
pip install -r requirements.txt
pip install git+https://github.com/meraki-analytics/cassiopeia.git
install directly from git to get the latest changes. Cassiopeia doesnt often release to pipexport RIOT_API_KEY=<key>
to .bash_profile DB setup:
brew install postgresql
. Read postgres docs for instructions on how to start it up. You may(really) want to alias the commands for starting up and shutting down the psql server.CREATE DATABASE timewinder;
./manage.py migrate
to apply migrationsRedis celery setup:
brew install redis
export REDIS_URL="redis://localhost:6379/0"
export MAX_CONNECTIONS=20
export BROKER_POOL_LIMIT=10
redis-server /usr/local/etc/redis.conf
celery -A rewind worker -l warning
Import static data:
./manage.py shell
import api.items
api.items.update_items()
Done!
To run:
heroku local -p 8000
. Default port is 5000
Heroku will automatically run a celery worker as specified in the Procfile.Test on http://localhost:8000/get_match_timeline/?region=NA&match_id=2650476106
Deployment: screen -S server ./server.sh screen -S celery ./celery.sh