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
- Host: GitHub
- URL: https://github.com/liujip0/scouting
- Owner: liujip0
- Created: 2024-09-27T14:55:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T03:00:37.000Z (over 1 year ago)
- Last Synced: 2025-02-28T06:05:25.462Z (over 1 year ago)
- Topics: frc, frc-scouting, frc-scouting-system, scouting
- Language: TypeScript
- Homepage: https://isa2025.pages.dev
- Size: 5.83 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
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`.