Personal Recipe Box Database
Model a database of recipes, ingredients, and the many-to-many relationship between them, then write queries to find recipes matching a set of ingredients on hand. Learners practice many-to-many junction tables, joins, and GROUP BY/HAVING filtering.
- Estimate
- ~7h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
PostgreSQL · pgAdmin
Project roadmap
- 01
Design the schema
~1.5hCreate recipes, ingredients, and a recipe_ingredients junction table with quantities.
- 02
Insert sample data
~1hAdd a variety of recipes and ingredients, linking them through the junction table.
- 03
List ingredients per recipe
~1.5hWrite a join query showing each recipe with its full ingredient list.
- 04
Find recipes matching available ingredients
~2hUse GROUP BY and HAVING to find recipes fully covered by a given set of ingredients.
- 05
Filter by cuisine and prep time
~1hWrite a query filtering recipes by cuisine type and maximum preparation time.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack