Skip to content

CodingSuru/Chef-Mixtral

 
 

Repository files navigation

🍳 Chef Mixtral

Chef Mixtral is an AI-powered recipe page that utilizes the Hugging Face AI Model Mixtral to generate and manage interactive recipes. Built with React and Vite, this project demonstrates the use of state, props, and other modern React concepts to create a dynamic user experience.


🚀 Features

  • AI-powered recipe suggestions using Hugging Face's Mixtral model.
  • Users can add ingredients, and based on a minimum of 4 ingredients, the AI generates a recipe.
  • Interactive and responsive design.
  • Dynamic Markdown rendering for recipe content.
  • Environment variable management using dotenv.
  • Built with cutting-edge React features.

🛠️ Tech Stack

  • Frontend Framework: React (Version 19.0.0)
  • Build Tool: Vite
  • State Management: React State and Props
  • Packages Used:
    • @huggingface/inference (v3.0.0)
    • dotenv (v16.4.7)
    • react-markdown (v8.0.6)
    • react (v19.0.0)
    • react-dom (v19.0.0)

📦 Installation

To run Chef Mixtral locally, follow these steps:

  1. Clone the Repository:

    [git clone](https://github.com/Priyanshu-Iron/Chef-Mixtral)
    cd chef-mixtral
  2. Install Dependencies:

    npm install
  3. Set Up Environment Variables:

    • Create a .env file in the root directory.
    • Add your Hugging Face API key:
      REACT_APP_HUGGINGFACE_API_KEY=your_api_key_here
  4. Run the Development Server:

    npm run dev
  5. Open http://localhost:5173 in your browser to view the app.


🌐 Live Demo

Chef Mixtral is deployed on Netlify. Check it out here: 👉 Chef Mixtral Live


📸 Preview

Chef Mixtral Screenshot Chef Mixtral Screenshot


🤖 How It Works

  1. The app fetches recipe suggestions from the Hugging Face Mixtral model.
  2. Users can input ingredients into the app. When a minimum of 4 ingredients are provided, the AI generates a recipe suggestion.
  3. User input is handled dynamically with React state and props.
  4. Recipes are displayed in a beautifully rendered Markdown format.

👨‍🏫 Learning Journey

This project was inspired by the lessons on Scrimba taught by [Bob Ziroll]. The primary focus was on learning interactive web development using:

  • State management.
  • Prop drilling.
  • Integration of external APIs.

🛡️ License

This project is licensed under the MIT License.


🙌 Acknowledgements

  • Hugging Face for the Mixtral AI model.
  • Scrimba for providing excellent learning resources.
  • [Bob Ziroll] for his insightful tutorials.

📬 Contact

For any inquiries or contributions, reach out at:


Happy Cooking! 🍲

About

React Project Chef Mixtral

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.1%
  • CSS 33.7%
  • HTML 4.2%