Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

DATABASE PROJECT REPORT

Project Name: Ecommerce website


Section: BCS-5B
Team Members:
20K-1689 Abdullah Jawed
20K-0274 Nashit Budhwani
20K-0264 Ali Hassan

Advisor:
MISS ERUM SHAHEEN

INTRODUCTION:
We have built an ecommerce website from which a user (customer) can search
through many products and can place an order. The website requires you to
register as a user and select products you want to purchase, this activity is all
saved in the database and all results are fetched from the database. At the end the
user enters his/her checkout details/bank details and performs a transection.
TECHNOLOGY:
The website’s frontend is made using HTML and CSS, while the database is
connected to the frontend using FLASK framework at the backend, it is a library
of python that can be used to make websites and integrate backend/database with
frontend. Moreover, We have used MYSQL Database Server as our database.

SYSTEM DESIGN:
ER DIAGRAM:
NORMALIZATION:
BASE TABLE:

2ND NORMAL FORM:

3rd NORMAL FORM:


COMPLETE NORMALIZATION DIAGRAM:

SCREENSHOTS OF PROJECT:

The design of our project is as follows:

As the customer arrives at our website, he has to login or register himself to order
to proceed to use our website. As the customer enters his details it is saved in the
database system and it is maintained as he proceeds through our website.
Upon login, the home page is displayed which tells about our website and gives
a summary of our products. The user can scroll down for a overall glimpse of our
website.
The customer than can press shop now to shop or skim through our products
which are listed on our website. The product list includes pictures, price and
details of our product that is listed.

If he wishes to buy the product, he can add the product to the cart which saves the
details of the product and our database also saves that information in the tables.
After validating the items in cart a user can then proceed to checkout by inserting
his information and financial information for online shopping

After check out a user gets to see our confirmation page and a big thank you from
our side !!
Connectivity Screenshots:

connected to the online database we made.


Triggers:
Backup Cart Trigger:

DELIMITER$$
CREATE TRIGGER bkp_cart
AFTER INSERT ON cart
FOR EACH ROW
BEGIN
INSERT INTO backup_cart VALUES(new.user_id,new.prod_no,new.quantity);
END$$
DELIMITER ;

DELIMITER $$ CREATE TRIGGER trans


AFTER INSERT ON checkout
FOR EACH ROW
BEGIN
INSERT INTO backup_transc
VALUES(new.transactionid,new.userid,new.transaction_date,new.amount);
END$$
DELIMITER ;

Views:
Userproduct:
CREATE VIEW userproduct AS
SELECT
product_name,
description,
quantity,
image,
price
FROM
products

Functions:
homepage,shop,login,register,productSingle,addtoCart,cart,remove,checkout,confir
mation

You might also like