adv1996 / uff-client

Universal Fantasy Football Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Universal Fantasy Football - Client (uff-client)

Aggregate fantasy football from across various platforms into a single schema to pull data from.

Leverage platform agnostic data fetching methods to generate league analytics.

Open demo app to try it out!

yarn dev

Run Mock JSON Server. This is used for tests and gets you running with a default "demo" league loaded in.

yarn dev:test-api

If you want to start testing on real leagues and want to seed your mock data with real data use the pipeline scripts to get started.

This is an important workflow to reduce the number of fetches to third parties during development and speeds up local development.

cd api

eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

pyenv activate env

source env/bin/activate // activate virtual env
pip install -r requirements.txt // install packages for pipeline scripts

python league.py 784961395996356608 1 10
python league.py {LEAGUE_ID} {START_WEEK} {END_WEEK}

python api.py

Once you complete those steps you should see db.json and routes.json inside pipeline/api. You can now run

yarn dev:api

to use json-server to create an api on saved leagues.

API for Player Stats and Projections

uvicorn app.main:app --reload --port 4400

About

Universal Fantasy Football Client


Languages

Language:Jupyter Notebook 54.7%Language:TypeScript 33.2%Language:Python 11.7%Language:HTML 0.2%Language:JavaScript 0.1%Language:Shell 0.1%Language:CSS 0.0%