#Cann Tables
A small flask application that displays football tables in a Cann format, currently hosted here.
##Installation
-
Clone this git repo
-
Create and activate a virtualenv
-
Install the requirements:
pip install -r requirements.txt -
Run the following command to setup the database:
python manage.py db upgrade -
Run the scraper, add a user and run the flask app:
python manage.py scrape python manage.py add_user python manage.py runserver
You can also run the following command to get an interactive shell with app, db and the Team,League and User models available:
python manage.py shell
##Deployment You can deploy this app using dokku or heroku (untested):
-
Push this repo to your dokku/heroku instance
-
Set the
CANN_ENVenviroment variable to"prod", and set aSECRET_KEYenvironment variable -
Setup a Postgresql server
-
Run the scrape command inside the instance:
python manage.py scrape -
Add a user:
python manage.py add_user -
Go to /login to login and access the admin panel
Licensed under GPL v3
