GitHunt
NO

nosecreek/fantasy-hockey

A tool to help analyze your Yahoo! Fantasy Hockey matchups

Fantasy Hockey Helper

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:

Backend

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 ID
  • APP_SECRET - Yahoo! Client Secret
  • PORT - If running locally, set to 3003
  • FRONTEND_URI - http://localhost:3000/ if running locally
  • BACKEND_URI - https://localhost:3003/ if running locally

You will also need to generate key.pem and cert.pem files for https if running locally

Install

Run npm i to install all dependencies.

Run

Use npm start to start the server or npm run dev to start in development mode.

Frontend

The Frontend is a React app. If running locally, it will automatically proxy backend requests to the local backend running at https://localhost:3003/.

Install

Run npm i to install all dependencies.

Run

Use npm start to start the web application.

Languages

JavaScript89.6%CSS6.4%HTML4.0%

Contributors

Created December 9, 2022
Updated August 25, 2024
nosecreek/fantasy-hockey | GitHunt