Skip to content

Repository files navigation

Fantasy FRC

A fantasy app for FRC: draft teams, track performance, and score based on live data.

Getting Started

Prerequisites

Install

git clone https://github.com/aidankeighron/fantasy-FRC.git
cd fantasy-FRC
npm install
cd functions && npm install && cd ..

Configure Environment

Create .env.local in the project root:

NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=

Firebase Setup

firebase login
firebase deploy --only firestore:rules
firebase functions:secrets:set TBA_API_KEY
firebase deploy --only functions

Run

npm run dev       # http://localhost:3000
npm run build     # production build
npm run start     # serve production build

Deploy

Push to main — Firebase App Hosting deploys automatically.

firebase deploy --only functions   # update cloud functions
firebase deploy --only firestore   # update rules/indexes

Screenshots

Home

home page

Team

team page

1 v 1

1 v 1 page

About

Fantasy football but FRC robotics

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages