https://github.com/harsh3dev/genaippt
https://github.com/harsh3dev/genaippt
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/harsh3dev/genaippt
- Owner: harsh3dev
- Created: 2025-04-16T15:44:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-17T04:35:23.000Z (about 1 year ago)
- Last Synced: 2025-04-17T18:39:53.372Z (about 1 year ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Recipe Generator
## Overview
The AI Recipe Generator is a web application that helps users create unique and personalized recipes using artificial intelligence. By leveraging the Gemini API, users can input ingredients they have on hand, and the AI will generate creative recipes based on those ingredients.
## Features
- **Ingredient Input**: Users can input a list of ingredients they have available.
- **Recipe Generation**: The AI generates unique recipes based on the provided ingredients.
- **Detailed Instructions**: Each generated recipe includes detailed cooking instructions and measurements.
- **User-Friendly Interface**: Easy-to-use interface for inputting ingredients and viewing generated recipes.
## Technologies Used
### Front-End
- HTML5
- CSS3
- JavaScript (ES6+)
- React.js
### Back-End
- Node.js
- Express.js
### API
- Gemini API
### Other Tools and Libraries
- Axios (for API requests)
- Git & GitHub
## Installation
### Prerequisites
- Node.js and npm
### Setup
1. Clone the repository:
```bash
git clone https://github.com/yourusername/ai-recipe-generator.git
cd ai-recipe-generator
```
2. Install dependencies:
```bash
npm install
```
3. Configure the environment variables:
- Create a `.env` file in the project root directory.
- Add the following environment variables to the `.env` file:
```
GEMINI_API_KEY=your_gemini_api_key
```
4. Start the development server:
```bash
npm start
```
## Usage
1. Open your web browser and navigate to `http://localhost:3000`.
2. Enter the ingredients you have in the input field.
3. Click the "Generate Recipe" button to receive a unique recipe generated by the AI.
## Example
1. **Input Ingredients**: Enter ingredients like "chicken, tomatoes, garlic".
2. **Generated Recipe**:
- **Title**: Garlic Tomato Chicken
- **Ingredients**: Chicken, Tomatoes, Garlic, Olive Oil, Salt, Pepper
- **Instructions**:
1. Preheat the oven to 375°F (190°C).
2. Season the chicken with salt and pepper.
3. Heat olive oil in a pan and sauté garlic until golden.
4. Add tomatoes and cook until soft.
5. Place chicken in a baking dish, top with tomato-garlic mixture.
6. Bake for 25-30 minutes until the chicken is cooked through.
## Contributing
Contributions are welcome! Please follow these steps to contribute:
1. Fork the repository.
2. Create a new branch: `git checkout -b feature-branch-name`
3. Make your changes and commit them: `git commit -m 'Add new feature'`
4. Push to the branch: `git push origin feature-branch-name`
5. Create a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Acknowledgements
- Thanks to the Gemini API team for providing the AI capabilities.
- Inspired by various online recipe platforms and culinary creativity.
---