Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Recipe Generator | Gourmet Fork AI 🍴✨

Live Demo Python Version Framework AI Engine License

An AI-powered gourmet custom recipe generator built using Python Flask, JavaScript, CSS Glassmorphism, and Google Gemini AI. Enter available pantry ingredients with quantities, select dietary preferences, and instantly receive custom recipes complete with interactive cooking step timers, nutrition macros, and alternative equipment & pantry substitutions formatted with slashes /.


🌐 Live Web Application

👉 Click Here to Open the Live Project: https://custom-receipe-generator.vercel.app/


🛠️ Technologies Used

Category Technology Description
AI Engine Google Gemini Generates customized gourmet recipes, validates food items, and provides alternative equipment substitutions (/).
Backend Python Flask REST API endpoints (/api/generate-recipe, /api/status), prompt engineering, and environment routing.
Frontend HTML5 CSS3 JavaScript Luxury Glassmorphism dark theme, dynamic ingredient builder, interactive checklist, and step timer widgets.
Typography & Icons Font Awesome Google Fonts Plus Jakarta Sans & Playfair Display typography paired with culinary iconography.
Deployment Vercel Git Vercel Python Serverless Functions with automatic GitHub deployment pipeline.

🌟 Key Features

  • 🍳 Dynamic Ingredient Builder: Input ingredients with custom quantities and units, or use quick-add pantry staple tags.
  • 🤖 AI Ingredient Validation: Automatically verifies if input items are valid, edible food items. Prompts for retry if non-food items are entered.
  • 🔀 Smart Alternate Substitutions (/): Provides equipment and pantry staple alternatives (e.g. Frying Pan / Non-stick Skillet, Salt / Sea Salt) if standard cookware isn't available.
  • ⏱️ Interactive Cooking Checklist & Timer: Check off cooking steps as you cook with built-in step countdown timers.
  • 📊 Nutritional Macros: View estimated protein, carbs, fat, and total calories per serving.
  • 🔒 Secure API Key Management: API key is isolated inside .env and kept local using .gitignore.

🔒 Security: Hiding Your API Key

Important

Never commit your API key to GitHub. The .env file is excluded from Git tracking via .gitignore.

1. Local Environment Setup

Create a file named .env in the root folder (do not push this to GitHub):

GEMINI_API_KEY=YOUR_ACTUAL_GEMINI_API_KEY_HERE

2. Template Configuration (.env.example)

Developers cloning this repo should copy .env.example to .env:

cp .env.example .env

🚀 Quick Start Guide

Prerequisites

Installation

# 1. Clone the repository
git clone https://github.com/PavanReddy666/Custom-Receipe-Generator.git
cd Custom-Receipe-Generator

# 2. Install dependencies
pip install -r requirements.txt

# 3. Create .env file and add your key
echo "GEMINI_API_KEY=your_gemini_api_key_here" > .env

# 4. Run the Flask application
python app.py

Open your browser and navigate to http://127.0.0.1:5000 or access the live deployment at https://custom-receipe-generator.vercel.app/.


🤝 Add Me / Contribution Section

We welcome contributions from the community! If you'd like to collaborate, add new features, or join as a contributor:

  1. Fork this repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contributors & Maintainers


📂 Project Structure

Custom-Receipe-Generator/
├── app.py              # Main Flask Backend & Gemini AI integration
├── requirements.txt    # Python dependencies
├── .env                # Local API Key (Ignored by Git)
├── .env.example        # Environment template for repository
├── .gitignore          # Excludes secret & temporary files
├── static/
│   ├── css/
│   │   └── style.css   # Glassmorphic dark styling & layout
│   ├── js/
│   │   └── app.js      # Dynamic client application logic
│   └── favicon.svg     # Gourmet Fork SVG logo icon
└── templates/
    └── index.html      # Single Page Application HTML structure

📜 License

Distributed under the MIT License. See LICENSE for more information.

About

Custom Recipe Generator is a full-featured web application that allows users to generate personalized cooking recipes using external APIs. Simply input your available ingredients, dietary preferences, or meal types, and let the app whip up delicious culinary ideas instantly!

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages