An open API service indexing awesome lists of open source software.

https://github.com/liujip0/scouting


https://github.com/liujip0/scouting

frc frc-scouting frc-scouting-system scouting

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# 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:

```zsh
gh repo clone liujip0/scouting
```

or git:

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

### 2. Navigate to scouting directory

```zsh
cd scouting
```

### 3. Install dependencies

```zsh
pnpm install
```

### 4. Add environment variables

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

```env
VITE_SERVER_URL="http://localhost:8787"
```

Create a file called `.dev.vars` in `api/`

```vars
ADMIN_ACCOUNT_USERNAME="admin"
ADMIN_ACCOUNT_PASSWORD="adminpassword"

FIRST_API_TOKEN=
TBA_API_TOKEN=

JWT_PRIVATE_KEY="xc03o1xblf4rga87xss3ebztlc8f5r9l"
```

### 5. Initialize local database

Change to `api/` folder

```zsh
cd api
```

Initialize local database

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

Return to original folder

```zsh
cd ..
```

### 6. Run local development server

```zsh
pnpm dev
```

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