Skip to content

Latest commit

 

History

372 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Team Hub

Attendance + roster web app for FRC Team 1741 (Red Alert Robotics).

Development

Host requirements: Docker Desktop, a browser. Nothing else — Node, npm, the Supabase CLI, and psql all live inside the dev container.

Quick start — one command

From the repo root:

docker compose up

That builds the dev container and runs scripts/dev-up.sh inside it, which installs npm deps (first run only), starts local Supabase (sibling containers), and starts the Next.js dev server — all together, with logs streaming. Add -d to run it in the background.

  • App: http://localhost:3000 · Supabase Studio: http://localhost:54323
  • docker compose down stops both the app container and local Supabase (the startup script traps the shutdown signal and runs supabase stop; your DB data is preserved across restarts).
  • First run needs .env.localcp .env.example .env.local and fill in the keys. The committed local Supabase keys are stable demo JWTs, so the checked-in .env.local values just work.

Running one-off commands

./dev helper (host shell): ./dev npm run test, ./dev npm run db:psql, ./dev bash for an interactive shell. It joins the same stack as docker compose up — starting it if needed — so it's the one entrypoint for both bringing the stack up and running one-off commands.

Tests & checks: ./dev npm run test, ./dev npm run lint, ./dev npm run typecheck, ./dev npm run build. Database: ./dev npm run db:reset (re-apply migrations + seed), ./dev npm run db:psql (SQL shell), ./dev npm run db:stop.

Run git on the host, not through ./dev — the container has no git credentials.

Environment gotchas (e.g. why there are two Supabase URLs) live in docs/dev-notes.md.

Releases

Packages

Contributors

Languages