A smart food nutrition web app that helps you understand what's on your plate.
Built with Flask + Edamam API | My first solo project | Hackathon-ready 🚀
This app allows users to input any food name — from "banana" to "spinach" — and returns essential nutritional facts like calories, sugar, carbs, protein, fat, and more.
✨ It also shows:
- ⚖️ Macronutrients breakdown
- 🍽 Diet and health labels (like "Vegan", "Low-Fat")
- ❌ Handles missing data cleanly
I often found myself wondering about the nutritional value of foods I eat daily. But looking them up manually was slow and confusing.
So I thought — "Why not build my own nutrition analyzer?"
That sparked this project: a minimal, elegant app to decode your food.
- 🔍 Simple food search form
- 📊 Nutrient breakdown: Calories, Carbs, Sugar, Protein, Fat
- ✅ Health + Diet labels (Vegan, Gluten-Free, Keto-friendly)
- 💡 Smart fallback for unavailable nutrients
- 💥 API error handling built-in
- 🧠 Built with Flask & Edamam API
| Tech | Purpose |
|---|---|
| 🐍 Python (Flask) | Backend + Server Routing |
| 🎨 HTML / Jinja2 | Frontend Rendering |
| 🌐 Edamam API | Real-time food data |
| 💾 Flask-Session | Store search results |
git clone https://github.com/yourusername/nutrition-app.git
cd nutrition-app
pip install -r requirements.txt
python app.py