Skip to content

liujip0/scouting

Repository files navigation

2025 Indiana Scouting Alliance App

This repository houses a React progressive web app serving as the offline-first scouting app custom designed for use by the Indiana Scouting Alliance in the 2025 FIRST Robotics Competition game, Reefscape.

Development Instructions

Message @liujip0 on Discord if you have any questions.

1. Clone the repo locally

Use either GitHub CLI:

gh repo clone liujip0/scouting

or git:

git clone https://github.com/liujip0/scouting.git

2. Navigate to scouting directory

cd scouting

3. Install dependencies

pnpm install

4. Add environment variables

Create a file called .env.local in app/src/

VITE_SERVER_URL="http://localhost:8787"

Create a file called .dev.vars in api/

ADMIN_ACCOUNT_USERNAME="admin"
ADMIN_ACCOUNT_PASSWORD="adminpassword"

FIRST_API_TOKEN=<Direct message @liujip0 on Discord>
TBA_API_TOKEN=<Direct message @liujip0 on Discord>

JWT_PRIVATE_KEY="xc03o1xblf4rga87xss3ebztlc8f5r9l"

5. Initialize local database

Change to api/ folder

cd api

Initialize local database

npx wrangler d1 execute isa2025-db --file=./migrations/0000_initialize.sql

Return to original folder

cd ..

6. Run local development server

pnpm dev

The frontend will be on localhost:5173 and the backend will be on localhost:8787.