# NutriGuard 🇳🇬
> AI-powered diabetes nutrition coach built for Nigerians, using only Nigerian foods.
## Quick Start
```bash
npm install && npm run dev
```
The app will be available at `
localhost`
## Live Demo
🚀 View Live Demo _(Deploy to Vercel and add link here)_
## Features
### For Patients
- **Smart Onboarding**: 5-step wizard that calculates your daily carb budget automatically
- **AI Meal Generator**: Get 3 meals + 2 snacks daily using ONLY Nigerian foods
- **Meal Logging**: Search 65+ Nigerian foods with GI ratings and quick-add
- **Progress Tracking**:
- Real-time carb ring showing daily consumption
- Adherence streak counter
- Weekly calendar heatmap
- Beautiful charts showing trends
- **Nigerian Food Database**: Ofada rice, moi moi, egusi soup, garden egg, and more!
### For Doctors
- **Patient Portal**: View all patients with traffic-light adherence indicators
- **Detailed Reports**:
- 7-day adherence charts
- Carb intake trends
- Recent meal logs
- Clinical recommendations
- **PDF Export**: One-click medical report generation with patient data
## Tech Stack
- **Frontend**: React 18 + TypeScript + Vite
- **Styling**: Tailwind CSS + shadcn/ui + Radix primitives
- **State**: Zustand (with localStorage persistence)
- **Charts**: Recharts
- **PDF**: @react-pdf/renderer
- **Animation**: Framer Motion
- **Icons**: Lucide React
## 60-Second Demo Script for Judges
1. **Login** (5s): Choose "I'm a Patient" → smooth onboarding flow
2. **Onboarding** (20s): Fill 5 quick steps → see auto-calculated carb budget
3. **Dashboard** (10s): View today's progress ring, streak counter, weekly heatmap
4. **AI Meal Generator** (15s):
- Click "AI Meal Plan"
- Watch 3 meals + 2 snacks generate instantly
- All Nigerian foods, perfect GI balance, under budget
5. **Progress Charts** (5s): Beautiful weekly trends and adherence calendar
6. **Doctor Portal** (5s): Switch to doctor view → see 5 patients → download PDF report
**Total time: 60 seconds** ⏱️
## Pro …