Denver Post's gametracker web app.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
avs
broncos
csu
cu
editor
js
nuggets
.gitignore
README.md
addiv.php
adrun.js
back-arrow.png
button-discuss.png
button-live.png
button-media.png
button-news.png
button-refresh.png
button-stats.png
button-video.png
changelog.html
comments.php
countdown.js
denverpost-twitter-template-large.png
dev.sh
footer.php
functions.js
functions.php
gametracker-fb-image-template.psd
gametracker-fb-image.png
header.php
index.css
index.php
parse-basketball.js
parse-football.js
parse-hockey.js
style.css

README.md

ABOUT

v 0.3.2

Gametracker pulls and displays live stats in a mobile-focused web display in concert with other elements such as a live blog, photo galleries, stats/box score, news feed and videos.

Dev environment setup

DO NOT DO THIS ON PRODUCTION ENVIRONMENTS

Note: In Linux or Mac OS, you can run bash dev.sh from the gametracker directory to complete these steps automatically.

  1. Fetch the schedule data with sudo php editor/scheduler.php to create schedule.json. It may take a minute or two.
  2. Go into each team subdirectory and create the team config files from the included examples: cp config.example config.json

Live game data

Manually run, or create a cron job for, updater.php in each team subdirectory. This script uses the team and game data from config.json and schedule.json to create updates.xml for each team. updates.xml is the data file fetched by the AJAX calls on the main Gametracker pages for live updating scores and game data.

The live blog is an embedded ScribbleLive article that updates on its own.

The news headlines are created by Simplepie similar to any other feed-driven blog listing we use. The refresh button fetches the latest version using AJAX and updates the page.

TO DO

  • Setup schedule.php cron on prod
  • Push new stuff; do rsync with delete (ask Jeff)
  • Add get_schedule to updater.php; use it to fill out placeholder XML output.
  • Disambiguate updater -- let it accept a get or command-line variable and exist only once
  • Add basketball functionality (Nuggets, CU/CSU hoops)
  • Single minute-by-minute update checker; run for games if needed, else just run feed checks once per day...