To get started with the project, follow the instructions below to set up both the model and the frontend.
Ensure that you have the following software installed on your system:
The model
directory contains a Julia project for generating predictions using the Bayesian model. To set up and run the model, follow these steps:
-
Navigate to the
model
directory:cd model
-
Add your key from The Blue Alliance.
echo 'KEY="<key>"' >> python/.env
-
Run the data fetching script.
cd python && python 2023.py && cd ..
-
Start the Julia REPL:
julia
-
Activate the DrWatson project environment and install the required dependencies:
using DrWatson @quickactivate import Pkg; Pkg.instantiate()
-
Run the model:
include("scripts/run_frc2023.jl")
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:
-
Navigate to the
frontend
directory:cd frontend
-
Install the required dependencies using Yarn:
yarn install
-
Start the development server:
yarn run dev
The React app should now be running at `http://localhost:3000\` in your web browser.