This repository contains the relational database design and SQL implementation for the Of The World Exotic Fruit Storefront, a database driven web application developed as part of Oregon State University’s CS340 Database course.
The system supports core storefront and administrative workflows including product management, customer records, order processing, and reporting.
- MySQL
- SQL (DDL, DML, PL SQL)
- Stored Procedures
- Relational Database Design (3NF)
This was a team based academic project. The database schema and SQL logic were developed collaboratively, while application level responsibilities were divided between frontend integration and backend implementation.
This repository focuses on the database layer and my frontend integration work.
- Codesigned the relational database schema and entity relationships
- Authored and refined SQL DDL and DML scripts
- Implemented stored procedures for database reset and reporting
- Integrated the database with an existing backend by:
- Updating and aligning API request routes
- Modifying frontend fetch logic to work with the OSU hosted server
- Ensuring frontend CRUD operations correctly reflected database state
- Built and maintained the client dashboard and administrative UI
- Validated database behavior through frontend driven workflows
- Responsible for integrating the API into the frontend, testing endpoints, and adapting frontend workflows to backend constraints
Note: The backend server implementation was created by a teammate and is not included in this repository. My work focused on database design, SQL logic, and frontend and backend integration, and frontend to database integration.
Normalized relational schema (Third Normal Form) Tables for:
- Products
- Categories
- Customers
- Orders
- Order Items
- Primary and foreign key constraints enforcing data integrity
- Stored procedures used for:
- Resetting database tables to sample data
- Supporting reporting and administrative queries
- DDL.sql Database schema creation scripts
- DML.sql Sample data insertion scripts
- PL.SQL Stored procedures and database logic
- Includes schreenshots of:
- schema diagram:(screenshots/er-diagram.png):https://github.com/mhambric/exotic-fruit-database/blob/main/documentation/screenshots/sql%20schema.%20png.png
- Database schema (ER diagram): https://github.com/mhambric/exotic-fruit-database/blob/main/documentation/screenshots/er-diagram.png
- Frontend dashboard connected to backend: https://github.com/mhambric/exotic-fruit-database/blob/main/documentation/screenshots/frontend%20and%20backend%20working%20screenshots.png
- SQL output and sample data: https://github.com/mhambric/exotic-fruit-database/blob/main/documentation/screenshots/sample%20data.png
This database was designed to support the Exotic Fruit storefront and administrative dashboard.
A live frontend demo showcasing these workflows is available here: https://exotic-fruit-frontend.vercel.app/
The frontend demonstrates how the database supports:
- Product browsing
- Cart interactions
- Administrative product and category management
- Order and customer workflows
- Relational database design for real world applications
- SQL proficiency including joins, constraints, and procedures
- Understanding of frontend to backend to database interaction
- Ability to integrate with an existing backend system
- Clear separation of responsibilities in a team environment