Team Fantasy Football Tracker.
App using Node.js and Express, deployed via Heroku.
Rather than the traditional "Fantasy Football," this league works by members drafting all professional NFL teams. Whoever has the most accumulated wins at the end of the regular season wins the league.
Make sure Node.js and the Heroku CLI (not needed for local server) are installed.
git clone https://github.com/cullenself/fantasy.git # or your own fork
cd fantasy
heroku create # if deploying to Heroku
To setup the League initially, run node setup.js
to create a teams.json
file.
This is not required, a sample league configuration has been provided.
For advanced functionality, the back end server tries to use a restricted API. MySportsFeed allows the app to:
- run faster.
- display schedule information.
- show scores of in-progress games.
The app still functions without using this API, falling back to scraping win information from the news.
To configure access:
export MSFTOKEN={apikey}
heroku config:set MSFTOKEN={apikey} -a {heroku_appname}
npm install
npm start
Visiting localhost:5000 should show something similar to the following:
The following creates a new app on Heroku and configures the local git
repo, then deploys.
heroku create
git push heroku master
heroku open
See Getting Started on Heroku for more information about basic app deployment.