Skip to content

CarlColglazier/cheesecake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Cheesecake

Getting Started

To get started with the project, follow the instructions below to set up both the model and the frontend.

Prerequisites

Ensure that you have the following software installed on your system:

  1. Julia (for the model)
  2. Node.js (for the frontend)
  3. Yarn (for the frontend)

Model Setup

The model directory contains a Julia project for generating predictions using the Bayesian model. To set up and run the model, follow these steps:

  1. Navigate to the model directory:

    cd model
  2. Add your key from The Blue Alliance.

    echo 'KEY="<key>"' >> python/.env
  3. Run the data fetching script.

    cd python && python 2023.py && cd ..
  4. Start the Julia REPL:

    julia
  5. Activate the DrWatson project environment and install the required dependencies:

    using DrWatson
    @quickactivate
    import Pkg; Pkg.instantiate()
  6. Run the model:

    include("scripts/run_frc2023.jl")

Frontend Setup

The frontend directory contains a React app for visualizing the predictions generated by the model. To set up and run the frontend, follow these steps:

  1. Navigate to the frontend directory:

    cd frontend
  2. Install the required dependencies using Yarn:

    yarn install
  3. Start the development server:

    yarn run dev

The React app should now be running at `http://localhost:3000\` in your web browser.