From b252128c37e4b77c0aaf8c4891dcf2df87348eef Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Wed, 29 Apr 2026 01:32:15 +0200 Subject: [PATCH] docs: update CLAUDE.md for pnpm and corrected route paths --- CLAUDE.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 7d7b65b..73b38b4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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