Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (41 loc) · 1.99 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.99 KB

avid

Fantasy Football draft helper. Vue.js under the hood. Hosted at avid.koser.us.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Season Set Up

  1. Update players
    1. Get the JSON file from My Fantasy League
    2. Format JSON
    3. Move file to /static/players.json
  2. Update rankings
    1. Go to http://www03.myfantasyleague.com/{year}/adp
    2. Select parameters: league size, scoring system, etc.
    3. Click "Now!"
    4. Copy URL query string parameters and paste them after the API URL: http://www03.myfantasyleague.com/{year}/export?TYPE=adp&JSON=1&COUNT=100&POS=QB%2BRB%2BWR%2BTE%2BPK%2BDef{queryStringParams}
    5. Download json file
    6. Format JSON
    7. Move file to /static/adpRankings-{teamCount}teams-{specialScoring}.json
      • eg /static/adpRankings-12teams-2qb-half.json
    8. Update rankings in /src/services/fetchJson.js to get the new rankings file.
  3. Update personal rankings
    1. File is located at /static/rankings.json
    2. Format is: [{id": "7836", "ranking": 24}]
  4. Build for deployment: npm run build
  5. Deploy files from /dist folder

For detailed explanation on how things work, check out the guide and docs for vue-loader.

Logging

Log entire object:

this.$util.inspect(myObject))