Track stats with a google sheets backend, publish them with d3 and jquery.
- Clone this repo to your computer
- Create a virtual environment for this project:
mkvirtualenv STAT
or something like that.
- If you don't have
mkvirtualenv
on your machine:pip install virtualenv virtualenvwrapper
echo "export WORKON_HOME=~/Env" >> ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc
- Install the project requirements with
pip install -r requirements.txt
- Open the shared Sports spreadsheet (in Google Drive, if you don't have access ask Boniface)
- Create a new tab and give it a name. The name must be all-lowercase, also, use hyphens instead of spaces.
- Update deploy.bash with the name of the new tab.
Basically: Look at how it was done on the Broncos Sacks Tracker and take it from there.
How to update the Broncos Sacks Tracker for a new year
- Open the shared Sports spreadsheet (in Google Drive, if you don't have access ask Boniface)
- Create two new tabs: broncos-sacks-YEAR and broncos-sacks-by-player-YEAR
- The layout for the new tabs should look like the previous years' sheets.
- Add a row (insert it in row 2) in the broncos-sacks-per-season for the new year, give it a value of 0.
- Copy the previous year's html file (such as www/broncos-sacks-2016.html and edit these lines:
- The title element
- Each instance of the article URL in the head
- Each instance of the old year in the body
- Add the new html file to the repo, upload it to extras (in the app folder, in stat-tacker).
- Update deploy.bash with the names of the two new tabs.
- SSH to prod, cd to the project directory, activate the virtual env and run ./deploy.bash
The MIT License (MIT)
Copyright © 2015-2017 The Denver Post
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.