You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Balanced Plate.AI is a comprehensive nutrition tracking application that leverages Google's Gemini AI to analyze food images and provide detailed nutritional insights. Simply snap a photo of your meal, and our AI instantly identifies food items, calculates nutritional content, and provides personalized recommendations for a healthier lifestyle.
Why Balanced Plate?
🎯 Accurate AI Analysis - Powered by Google Gemini Vision for precise food recognition
⚡ Instant Results - Get nutritional breakdown in seconds
📊 Comprehensive Tracking - Monitor calories, macros, and micronutrients
🎨 Beautiful Interface - Modern, responsive design with dark mode support
🔄 Real-time Updates - WebSocket integration for live notifications
📱 Mobile-Ready - Fully responsive design for all devices
✨ Features
🍽️ Food Analysis
AI-Powered Recognition - Upload or capture food images for instant analysis
Detailed Nutrition Data - Calories, proteins, carbs, fats, and micronutrients
Portion Estimation - Smart portion size detection
Balance Scoring - Get a 0-100 meal balance score
📊 Dashboard & Analytics
Real-time Statistics - Daily, weekly, and monthly nutrition overview
Interactive Charts - Visualize your nutrition journey
Meal Timing Analysis - Track when and what you eat
Food Group Distribution - See your diet composition
🎯 Personalized Recommendations
AI-Generated Insights - Smart suggestions based on your eating patterns
# Clone the repository
git clone https://github.com/yourusername/balanced-plate.git
cd balanced-plate
# Navigate to backend directorycd backend
# Create virtual environment
python -m venv venv
# Activate virtual environment# Windows
.\venv\Scripts\activate
# macOS/Linuxsource venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Edit .env with your configuration# Run migrations
python manage.py migrate
# Create superuser (optional)
python manage.py createsuperuser
# Start development server
python manage.py runserver
Frontend Setup
# Navigate to frontend directorycd frontend/balanced_plate
# Install dependencies
npm install
# or
pnpm install
# Set up environment variables
cp .env.example .env
# Edit .env with your configuration# Start development server
npm run dev
Running Celery Workers
# In a separate terminal, navigate to backendcd backend
# Activate virtual environment
.\venv\Scripts\activate # Windowssource venv/bin/activate # macOS/Linux# Start Celery worker
celery -A config.celery worker -l info -Q celery,email-notification,recommendations,beats --pool=solo
Running with WebSocket Support
# Use Daphne instead of Django's runservercd backend
daphne -b 0.0.0.0 -p 8000 config.asgi:application
⚙️ Configuration
Environment Variables
Backend (.env)
# DjangoSECRET_KEY=your-secret-keyDEBUG=TrueALLOWED_HOSTS=localhost,127.0.0.1# DatabaseDATABASE_URL=postgres://user:password@localhost:5432/balanced_plate# RedisREDIS_URL=redis://localhost:6379/0# Google AIGOOGLE_API_KEY=your-google-api-key# Email (optional)EMAIL_HOST=smtp.gmail.comEMAIL_PORT=587EMAIL_HOST_USER=your-email@gmail.comEMAIL_HOST_PASSWORD=your-app-password