Recepie Finder Project (Sohaib)
Recepie Finder Project (Sohaib)
1. Introduction--------------------------------------------------------------------3
2. Objectives----------------------------------------------------------------------4
4. Database Design--------------------------------------------------------------5
5. ERD Diagram-----------------------------------------------------------------6
6. SQL Implementation---------------------------------------------------------7
7. Sample Queries---------------------------------------------------------------8
8. Conclusion---------------------------------------------------------------------9
The project aims to create a digital platform where users can add, browse, and manage recipes
through a simple web interface. It offers features like ingredient listing, user accounts, and recipe
categorization for easy access and organization.
Importance of Databases
A well-structured database ensures efficient storage, retrieval, and management of recipe data. It
maintains relationships between users, recipes, and categories, enabling smooth and accurate
operation of the platform.
• Objectives:
➢ To design a relational database structure for recipe management
➢ To implement data operations using SQL
➢ To provide a UI for interacting with the database using Node.js and Express.js
➢ To categorize recipes using a many-to-many relationship model
➢ To test database integrity through meaningful queries
• Database design:
The database includes five core tables:
- Users
- Recipes
- Ingredients
- Categories
- RecipeCategories (for many-to-many mapping)
Each table is linked through primary and foreign key constraints. The structure is simple and
easy to understand. There is a main Database and then there are 5 tables in that database.
• ER diagram:
The ER Diagram represents the relationships among the five main entities in the system.
• SQL Implementation
The database is implemented using SQL commands such as CREATE TABLE, INSERT
INTO, and SELECT. Primary keys, foreign keys, and constraints are defined to enforce data
integrity.
SQL Code:
-- Create Database
CREATE DATABASE RecipeFinder;
USE RecipeFinder;
USE RecipeFinder;
• Creating database:
Here the data is being extracted from the database and being shown here.
• Sample Queries:
• Conclusion:
Summary of What Was Achieved:
The Recipe Finder Database Management System effectively stores and retrieves recipe data,
user details, ingredients, and associated categories. A frontend connected via Node.js allows easy
interaction with the backend system.
Limitations and Future Improvements:
The current implementation covers core functionalities. Future improvements could include
advanced filters, user login features, rating systems, and real-time recommendations based on
category preferences.
.