This is a web app which can be used as tool to help analyze your Yahoo! Fantasy Hockey matchups. Currently it will only work with leagues which use head-to-head matchups.
You can use the app at https://fantasyhockey.fly.dev/ or follow the instructions below to self-host.
There are two parts to the app:
A Node.js server which uses Express and yahoo-fantasy to authenticate and retrieve data from the Yahoo! Fantasy Sports API.
You will need a Client ID and Secret from https://developer.yahoo.com/apps/
You will need a .env
file containing three variables:
APP_KEY
- Yahoo! Client IDAPP_SECRET
- Yahoo! Client SecretPORT
- If running locally, set to 3003FRONTEND_URI
-http://localhost:3000/
if running locallyBACKEND_URI
-https://localhost:3003/
if running locally
You will also need to generate key.pem
and cert.pem
files for https if running locally
Run npm i
to install all dependencies.
Use npm start
to start the server or npm run dev
to start in development mode.
The Frontend is a React app. If running locally, it will automatically proxy backend requests to the local backend running at https://localhost:3003/
.
Run npm i
to install all dependencies.
Use npm start
to start the web application.