Skip to content

DMzda/cann-tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Cann Tables

A small flask application that displays football tables in a Cann format, currently hosted here.

Screenshot

##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_ENV enviroment variable to "prod", and set a SECRET_KEY environment 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

About

A Flask app that displays Cann football tables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors