A web application that provides AI-driven recipe creation based on user-input ingredients and preferences. This project leverages Python, Django, and the OpenAI API to offer personalized, real-time recipe suggestions.
The Recipe Generator is a Django-based web application that generates recipe suggestions based on the ingredients and preferences input by the user. It uses the OpenAI API to generate AI-driven recipes in real time, providing an intuitive user experience.
- Python
- Django
- OpenAI API
- Clone the repository:
git clone https://github.com/rsc1102/recipe_generator.git cd recipe-generator
- Set up a virtual environment:
python3 -m venv env source env/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables: Create a .env file in the root directory and add your secrets and OpenAI API key:
DEBUG="true" SECRET_KEY="your-secret-key" OPENAI_API_KEY=your_openai_api_key
- Start the development server:
python manage.py runserver
Open your browser and navigate to http://127.0.0.1:8000/.