This repository contains the Anchor frontend app in anchor/. It is a
React + TypeScript + Vite application.
cd anchor
npm install
npm run devCreate anchor/.env (or update the existing file) with the following
variables:
VITE_API_BASE_URL=...
VITE_BACKEND_URL=http://localhost:8000
VITE_SUPABASE_URL=...
VITE_SUPABASE_ANON_KEY=...
Notes:
- If Supabase credentials are not provided, the app falls back to mock data in the client API layer.
VITE_BACKEND_URLdefaults tohttp://localhost:8000when unset.
Run these from anchor/:
npm run dev
npm run build
npm run preview
npm run lint