docs: update CLAUDE.md for pnpm and corrected route paths

This commit is contained in:
2026-04-29 01:32:15 +02:00
parent d6ccdaff1e
commit b252128c37

View File

@@ -8,10 +8,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
# Development
make dev # start backend + frontend in parallel
make dev-backend # cargo run (port 3000)
make dev-frontend # npm run dev (port 5173, /api proxied to :3000)
make dev-frontend # pnpm dev (port 5173, /api proxied to :3000)
# Build
make build # npm run build, then cargo build --release
make build # pnpm build, then cargo build --release
make compose-up # docker compose build + start
# Backend
@@ -19,9 +19,9 @@ cargo test # run all tests (uses sqlx::test macro — no DB setup nee
cargo check # fast type check without linking
# Frontend
npm run check # TypeScript + Svelte type check
npm run check:watch # watch mode
npm run build # Vite build to dist/
pnpm check # TypeScript + Svelte type check
pnpm check:watch # watch mode
pnpm build # Vite build to dist/
```
## Architecture
@@ -47,7 +47,7 @@ Route handlers live in `backend/src/routes/` and are merged into the main router
- **Types**: `src/lib/types.ts` mirrors the Rust models exactly — keep them in sync when changing the API
Routes:
- `routes/login/` — public login
- `routes/admin/login/` — public login
- `routes/admin/` — all tutor-facing pages (guarded by `+layout.svelte` auth check)
- `routes/s/[code]/` — public student check-in page