Skip to content

medmahmoudhdaya/hackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍏 Healthy Snack Ideas Generator

Welcome to the Healthy Snack Ideas Generator!
This Flask-based web app helps users generate healthy snack ideas based on the ingredients they have at home. It uses the Groq API to power the AI-driven snack suggestions. Users can save their favorite snacks to a personalized diet plan.

Live Demo: https://hackathon-39uq.onrender.com/


🚀 Features

  • 🧠 AI-Powered Snack Ideas: Generate healthy snack ideas based on ingredients and optional goals (e.g., lose weight, high protein).
  • 📋 Save to Diet Plan: Save your favorite snacks to a personalized list.
  • 🗑️ Remove Snacks: Easily remove snacks from your plan.
  • 💻 Simple and Intuitive UI: Built with Tailwind CSS for a clean, modern experience.

🧾 Prerequisites

Make sure you have the following installed:

  • ✅ Python 3.8+
  • ✅ pip (Python package manager)
  • ✅ Groq API Key (Get it here)

⚙️ Setup Instructions

1. Clone the Repository

git clone https://github.com/medmahmoudhdaya/hackathon.git
cd hackathon

2. Set Up a Virtual Environment

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Set Up Environment Variables

  1. Copy the .env.example file to .env:
cp .env.example .env
  1. Open the .env file and add your Groq API Key:
GROQ_API_KEY=your_groq_api_key_here

💡 Replace your_groq_api_key_here with your actual key from Groq


▶️ Run the App Locally

flask run

🧪 Example .env.example

# Rename this file to .env and add your API key below
GROQ_API_KEY=your_groq_api_key_here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published