Multi-page Vite frontend + FastAPI backend for an AI-powered math solver.
.env.example to .envVITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEYGROQ_API_KEYSCOUT_API_KEY (enables image understanding)pip install -r requirements.txt
uvicorn backend.app:app --reload --host 0.0.0.0 --port 8000
Backend health check: GET /health
npm install
npm run dev
The frontend uses the dev proxy in vite.config.js for:
/solve_stream/ocr/apiSo in local dev you can leave VITE_API_URL empty.
npm run build
npm run preview
The repository includes render.yaml defining:
dist/Set the required env vars in Render:
GROQ_API_KEY (required), SCOUT_API_KEY (optional), ALLOWED_ORIGINS (recommended)VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEYVITE_API_URL is automatically wired in render.yaml from the backend external URL.
.env files. Use .env.example as the template.dist/ is build output and should not be committed.docs/AGENT_AND_OUTPUT_GUIDE.md