This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/9fee406a-4660-4c63-84b1-46447ab23602
Prerequisites: Node.js
- Install dependencies:
npm install - Copy
.env.exampleto.env.local - Set the
GEMINI_API_KEYin.env.local - Optional: set
VITE_SUPABASE_URLandVITE_SUPABASE_ANON_KEYto enable real backend data - If using Supabase, run [supabase/schema.sql](/Users/kanyemic/Desktop/medical challenge/compete1/supabase/schema.sql) and [supabase/seed.sql](/Users/kanyemic/Desktop/medical challenge/compete1/supabase/seed.sql) in your database
- Run the app:
npm run dev
- Without Supabase env vars, the app falls back to local mock data.
- With Supabase configured,
fetchRandomCaseandfetchLeaderboardwill prefer backend data automatically.
