Fantasy Football draft helper. Vue.js under the hood. Hosted at avid.koser.us.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
- Update players
- Get the JSON file from My Fantasy League
- Example API Call: https://www72.myfantasyleague.com/{year}/export?TYPE=players&DETAILS=&SINCE=&PLAYERS=&JSON=1
- Developers API: https://www72.myfantasyleague.com/{year}/api_info?STATE=test&CMD=export&TYPE=players
- make sure to update the year in the URL
- Format JSON
- Move file to /static/players.json
- Get the JSON file from My Fantasy League
- Update rankings
- Go to http://www03.myfantasyleague.com/{year}/adp
- Select parameters: league size, scoring system, etc.
- Click "Now!"
- 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}
- Download json file
- Format JSON
- Move file to /static/adpRankings-{teamCount}teams-{specialScoring}.json
- eg /static/adpRankings-12teams-2qb-half.json
- Update
rankings
in /src/services/fetchJson.js to get the new rankings file.
- Update personal rankings
- File is located at /static/rankings.json
- Format is:
[{id": "7836", "ranking": 24}]
- Build for deployment:
npm run build
- Deploy files from /dist folder
For detailed explanation on how things work, check out the guide and docs for vue-loader.
Log entire object:
this.$util.inspect(myObject))