A modern FastAPI-based backend application that helps users manage recipes and generate AI-powered recipe suggestions using available ingredients.
This project was developed using a Spec-Driven Development approach.
The API allows users to:
✅ Create recipes
✅ View recipes
✅ Update recipes
✅ Delete recipes
✅ Generate AI recipe suggestions using Groq AI
- Create a new recipe
- Retrieve all recipes
- Retrieve recipe by ID
- Update existing recipes
- Delete recipes
Generate recipe recommendations based on available ingredients.
Example Input:
Rice, Chicken, Yogurt
Example Output:
Chicken Biryani with ingredients and cooking instructions.
recipe-manager-api/
├── routes/
├── services/
├── models.py
├── schemas.py
├── database.py
├── config.py
├── main.py
├── requirements.txt
├── .gitignore
└── README.md
- Python
- FastAPI
- SQLModel
- SQLite
- Pydantic
- Groq API
- Git & GitHub
POST /recipes
GET /recipes
GET /recipes/{id}
PUT /recipes/{id}
DELETE /recipes/{id}
POST /recipes/suggest
git clone
python -m venv venv
Windows:
venv\Scripts\activate
pip install -r requirements.txt
GROQ_API_KEY=your_api_key
uvicorn main:app --reload
Swagger UI:
This project helped me learn:
- FastAPI Development
- CRUD Operations
- Dependency Injection
- Schema Validation
- SQLModel ORM
- AI Integration
- Spec-Driven Development
Muhammad Umar