pytest + httpx + TestClient patterns for the FastAPI backend. Dependency overrides for auth, FakeSupabase mocking, HTTPException assertions. Use when writing or reviewing backend/tests/test_*.py.
The English summary is being prepared. Showing the original description.
shanraisshan/learning-x-claude☆ 2Updated May 7, 2026
Integrate with the FastAPI backend through the typed wrapper in frontend/lib/api.ts, attach Supabase JWTs for admin calls, and handle errors via ApiError. Use when adding/modifying API calls or wiring auth.
The English summary is being prepared. Showing the original description.
shanraisshan/learning-x-claude☆ 2Updated May 7, 2026
Build FastAPI endpoints in the layered router → service → Supabase pattern, with Pydantic v2 schemas, JWT/admin gating, and consistent HTTPException-based domain errors. Use when adding/modifying any endpoint under backend/.
The English summary is being prepared. Showing the original description.
shanraisshan/learning-x-claude☆ 2Updated May 7, 2026
Supabase Postgres + Storage + Auth operations from FastAPI — service-role client, RLS-aware queries, additive SQL migrations under backend/db/migrations, the create_order RPC, and the product-images bucket. Use when adding tables/columns, writing queries, calling RPCs, or working with Storage.
The English summary is being prepared. Showing the original description.
shanraisshan/learning-x-claude☆ 2Updated May 7, 2026