ESP32-S3 Bench Guide
ESP32-S3 N16R8 bench guide: live pinout, lessons, simulators and the bench log.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗React + Vite + Tailwind PWA: students ask questions by text, voice or photo and get step-by-step answers from an AI/RAG backend. Chats sync per user through Supabase.
npm install
cp .env.example .env # fill in the values (see below)
npm run dev # http://localhost:5173
| Variable | Purpose |
|---|---|
VITE_SUPABASE_URL, VITE_SUPABASE_PUBLISHABLE_KEY | Supabase project + anon key. Public by design; data is protected by RLS. |
NEXT_PUBLIC_API_URL | Base URL of your RAG backend, no trailing slash (e.g. https://rag11acc.onrender.com). Required for production builds. |
VITE_SITE_URL | Public site URL. Drives canonical URL, Open Graph, sitemap.xml, llms.txt. |
Everything prefixed VITE_ is shipped to the browser. Never put a Supabase service_role key or any Gemini/Anthropic/OpenAI key there; model keys belong on the AI backend, which the app calls with the user's Supabase access token in Authorization: Bearer.
Without Supabase variables the app runs in local-only mode (profile and chats stay in the browser).
npm run check:supabase checks reachability, key role, and that the anon role cannot read or write any table.POST {NEXT_PUBLIC_API_URL}/ask with { question, student_class?, subject } (subject is the id picked in the dropdown, see src/lib/subjects.ts; student_class is the number from the profile class, e.g. 12). The reply is { answer_id, answer, sources[{document,page}], flagged, mode, provider, top_score }. Thumbs up/down call POST {NEXT_PUBLIC_API_URL}/feedback with { answer_id, rating: "up"|"down" }. Photo attachments are not sent: the /ask endpoint is text only.
npm run dev · npm run typecheck · npm run build · npm run preview · npm run check:supabase
dist/ over HTTPS. public/_headers holds the CSP and security headers (Cloudflare Pages / Netlify); replace the AI backend placeholder in connect-src, or mirror the headers on your host./index.html.VITE_SITE_URL at build time for SEO files.