You are on page 1of 24

SmB - ShopmyBook

A PROJECT REPORT

Submitted by

Sidharth Chugh (22MCA20998), Sonu (22MCA21101)

in partial fulfillment for the award of the degree of

MASTERS

IN

COMPUTER APPLICATIONS

Chandigarh University

August 2023
BONAFIDE CERTIFICATE

Certified that this project report “SmB - ShopmyBook” is the bonafide work of
“Sidharth Chugh(22MCA20998), Sonu(22MCA21101)” who carried out the
project work under my/our supervision.

SIGNATURE SIGNATURE

Dr. Abdullah, Ms Sarabjeet Kaur,

Head of the Department, Supervisor,

UIC UIC

Submitted for the project viva-voce examination held on

INTERNAL EXAMINER EXTERNAL EXAMINER


TABLE OF CONTENTS

CHAPTER 1. INTRODUCTION ...............................................................

1.1 Scope ……………………………………………………………………………..

1.2 Planning …………………………………………………………………………..

1.3 Task Definition ……………………………………………………………………

CHAPTER 2. LITERATURE REVIEW AND THEORY .........................

2.1Literature Review …………………………………………………………………

2.2 Existing Systems ………………………………………………………………....

CHAPTER 3. PRELIMINARY DESIGN………………..........................


3.1 Basic Modules …. …………………………………………………………………

3.2 Input Design …. ……………………………………………………………………

3.3 Output Design ……… ……………………………………………………………. ..

3.4 Database Design …. …………………………………………………………………

CHAPTER 4. DETAILED SYSTEM DESIGN/TECHNICAL DETAILS


4.1 Implementation approaches …………………………………………………………

4.2 Coding details and code efficiency ………………………………………………….

4.2.1 Coding …………………………………………………………………………

4.2.2 Code Efficiency ……………………………………………………………….

4.3 Testing approach …………………………………………………………………….

4.3.1 Unit testing …………………………………………………………………….

4.3.2 Integrated testing ………………………………………………………………

4.4 Modifications and Improvements ……………………………………………………

CHAPTER 5. WORK ETHICS …………….………………..........................

5.1 Test Reports …………………………………………………………………………..

5.2 Future Scope of the Project ……………………………………………………………


CHAPTER 1

INTRODUCTION

1.1. Scope

The main objective of the project is to create an online book store that allows users to search
and purchase a book based on title, author and subject. The selected books are displayed in
a tabular format and the user can order their books online through credit card payment. The
Administrator will have additional functionalities when compared to the common user. He
can add, delete and update the book details, book categories, member information and also
confirm a placed order. Using this Website the user can purchase a book online instead of
going out to a book store and wasting time.
Online Book store is an online web application where the customer can purchase books
online. Through a web browser the customers can search for a book by its title or author,
later can add to the shopping cart and finally purchase using credit card transaction. The user
can login using his account details or new customers can set up an account very quickly.
They should give the details of their name, contact number and shipping address. The user
can also give feedback to a book by giving ratings on a score of five. The books are divided
into many categories based on subject like Software, Database, English, Architecture etc.
The motivation to create this project has many sources:-
• Interest to develop a good user friendly website with many online transactions using a
database.
• To increase my knowledge horizon in technologies like Javascript, SQL, CSS,
HTML,React
• To gain expertise using Data Grid, Data Set, Data Table, Data Adapter and Data
Readers.
1.2. Planning

This project has the following functionalities:


1) A Home page with product catalog
This is the page where the user will be navigated after a successful login. It will display all
the book categories and will have a search keyword option to search for the required book.
It also includes some special sections like recommended titles, weekly special books.
2) Search
A search by keyword option is provided to the user using a textbox .The keyword to be
entered should be the book title.
3) Advanced Search
Advanced search helps the user to search for a book based on Title, Author, Category and
price range. All the books which match the particular search criteria and their total count
will be displayed .From here the user can select a book and add to the shopping cart.
4) Book Description
If the user would like to know details about a book he can click on the title from where he
will be directed to a Book description page. It includes the notes on the book content and
also a link to Amazon.com to get the book review.
5) User Voting
The user can give rating to a book based on his interest. He can rate it by giving a score of
five as Excellent, four for very good, three for good, two for regular and one for deficient.
The final rating of a book will depend on all the individual user rating.
6) Shopping Cart
The user can manage a shopping cart which will include all the books he selected. The user
can edit, delete and update his shopping cart. A final shopping cart summary is displayed
which includes all the items the user selected and the final total cost.
7) Managing user accounts
Each user should have an account to access all the functionalities of website. User can login
using login page and logout using the logout page. All the user sessions will be saved in the
database.
8) Administration
The Administrator will be provided with special functionalities like
• Add or delete a book category
• Add or delete a member
• Manage member orders.
• Add or delete a Credit Card type.

1.3. Task Definition

Inception Phase
The inception phase will define all the project’s requirements. This phase will include the
production of a Vision Document, a Project Plan, a Software Quality Assurance Plan, and a
Demonstration.
This phase will be complete once the supervisory committee has approved all the above
work.

Elaboration Phase
The elaboration phase defines the project’s architecture. This phase will include the
production of revisions to the Project Plan and the Vision Document, an Architecture Design
Plan, a formal specification, Test Plan, Formal Technical Inspection and Architecture
Prototype.
This phase will be complete once the supervisory committee has approved all the above
work.

Production Phase
The production phase defines the project implementation and testing. This phase includes
the user manual, component design, assessment evaluation, project evaluation, references,
and formal technical inspection.
This phase will be complete once the supervisory committee has approved all the above
work.
CHAPTER 2

LITERATURE REVIEW AND THEORY

2.1 Literature Review


When we use Google to search for educational websites and applications, we
will find a lot of options. However, there is some ambiguity in selecting suitable
content at the proper time. Some websites have been developed that contain
stories, novels, essays, and other types of content. Electronic Commerce (e-
commerce) applications allow multiple parties involved in a commerce
transaction to connect in order to shop for new, secondhand, rare, and out-of-
print books. Review of literature for an online bookstore. The prototype serves
as a roadmap for establishing a solid Online Book Ordering System based on
user feedback, notably from the perspective of academics, which will be
handled by the university's book store. The arranging, however, is still done
manually.

According to a software development firm, an e-catalogue delivers vital


information about product specifications to potential customers. It makes it
easier for potential customers to find the items they want in the format they
want. It is the ideal and ideal product catalogue because it does not require
printing, has no number or color restrictions, and does not require distribution.
The system is described as self-updatable in a few simple clicks, with the
content in the e-catalogue always being accurate and, best of all, requiring no
reprinting. Furthermore, the e-catalogue promotes the products on its own, with
greater interactivity, consumer personalization, and even a shopping cart for
inquiries.

MPHOnline, BookDepository, and Amazon are few of the most popular online
shopping sites that employ an e-catalogue to display their products. The
website lists the many types of books that are available. The book cover can be
found on the left side of the main frame, as well as the book 13 description,
which includes information such as the title, author, price, and number of
volumes left to be sold, as well as customer ratings.
2.2 Existing System
Figure 1: mph online

Strength

Within 3 to 5 business days, the customers can anticipate their orders to arrive.
The website also sells stationery, office products, toys, and games in addition to
books. You can search for a book by title, author, ISBN, or publisher using the
prominent search bar at the top of the website.

Weakness

Shipment to West Malaysia is free for non-members and RM80 for members on
orders above RM120. The company charges RM7 per shipment for orders that
are less than the specified amount. Free shipping is provided for orders over
RM120 for non-members and RM80 for members in East Malaysia. Orders over
a certain amount apply for free shipping and no additional handling fees. The
company charges RM12 each shipment for orders under the stipulated amount,
plus an extra RM3 handling cost per book (both members and non-members).

Figure 2: Book Depository

Many Malaysians are unaware of Book Depository, an online book retailer that
is a hidden gem. This online book store is situated in the United Kingdom, but it
ships worldwide, including to Malaysia. Even better, the site provides free
international shipping.

Strength

The Book Depository is a true find. This online book store is situated in the
United Kingdom, but it ships worldwide for free. They have over 19 million titles
available for sale at cheap costs. Keywords, best sellers, 'quick movers,' 'book of
the week,' and other search options are available on the website. It's a great
place to browse for those hard-to-find books while still saving money on
shipping.

Weakness

The main disadvantage of purchasing books from this website is that delivery
can be slow. Regardless of whether the book is shipped from their UK or
Australia center, it can take anywhere from 7 to 14 days (often up to 3 weeks)
for an order to arrive in Malaysia.

Figure 3: Amazon

Amazon.com is the world's most well-known online bookshop, and it is the


website that launched the online buying revolution. On Amazon.com, the
customers may find almost any book in almost any edition. The best part is that
they deliver to Malaysia.

Strength

The website is clean and straightforward, with a large search bar at the top that
makes discovering books a breeze. There are several subcategories, and books
are classified by department, format, author, promotions, prizes, languages, and
other factors. Amazon.com also has a much larger selection of books in several
languages than any of the other online bookstores listed here. There are also
audiobooks and magazines available.
Amazon.com also sells e-books in the Kindle format, which the user can read on
their Kindle device. Most other Malaysian online booksellers do not sell e-books
in this format. Unfortunately, Amazon does not sell Kindles or e-books to
Malaysians directly.

The user rating and book description part of Amazon.com is one of the best
features, since it allows the user to make an informed decision before
purchasing a book. The site also proposes books depending on the user's
browsing habits, which can be very helpful and intuitive at times. Another
important feature is a list of alternatives for whether the user wants a brand
new, pre- loved (with lower costs mentioned), or Kindle version of the book.

Weakness

Amazon's shipping rates are unfortunately rather high, with ordinary shipments
costing $4.99 (RM20) per shipment and $4.99 (RM20) per item for book
purchases. The cost of shipping might easily exceed $29.99 (RM 125) each
shipment. Priority courier delivery, as well as large and bulky shipments, can be
rather costly. There are some items, however, that are eligible for free shipping
with Amazon if the customers spend $25 (RM100) or more.
CHAPTER 3

PRELIMINARY DESIGN

Introduction:
System design is the solution of a “how to approach to the creation of the new system. It is
composed of several steps. It facilitates the understanding and provides the procedural
details necessary for implementation of the system recommended in the feasibility study.
Emphasis is given on translating the performance requirements into design specification.
Design goes through logical and physical stages of development.
Logical design reviews the present physical system; prepares input and output specification;
make editing; security and control specification; details the implementation plan, and
prepare logical design walk through. The physical design maps out the details of the physical
system; plans the system implementation plan and specifies hardware and software. System
design translates the system requirement into the ways of the system as recommended in the
feasibility study. Thus the system design is the translation from user-oriented document to a
programmer or a database personal oriented document. System design is a highly creative
process that can be greatly facilitated by the following:-
• Strong Problem Definition
• Pictorial description of the Existing System
• Set of Requirements of the new system

Modules Description:
1. Registration: Customer can register their account here to continue shopping.
2. Admin: Admin can add books, check orders and make sure the orders are delivered on
time and can confirm payments by the customers.
3. Shopping Cart: Customers after login can browse through the different books and
choose one or more products and can add them to cart.
4. Payment: Cash on Delivery facility is available.
3.2 INPUT DESIGN

Very careful attention had to be given to input design, which is a major part of the
overall system design. In order to make the data entry as easy, logical and error free as
possible, specific standards had been followed. Validation checks, provided in the system
prevented the user in entering incorrect, erroneous data. This made sure that, only valid data
had been available for data processing. If valid data was entered, then meaningful error
messages had been prompted to enter correct data. The interactive screen formats facilitate
the entry of valid data.

3.2.1 VALIDATIONS:

Some fields are having only number, as an I/P. For this key ASCII is checked. If they
entered characters, it would display the message to enter number only. Exchange rates field
will be validated for number and dot symbols.
3.2.2 INPUT DESIGN OBJECTIVES:

The numbers of clear objectives of input design are,


§ To produce a cost effective method of input
§ To achieve the highest possible level of accuracy
§ To ensure that the input is acceptable to and understand by the user staff

3.3 OUTPUT DESIGN:

Output, as you probably know, generally refers to the results and information that are
generated by the system. For many end-users, output is the main reason for developing the
system and the basis on which they will evaluate the usefulness of the application. Most end
users will not actually operate the information system or enter data through workstations,
but they will use the output from the system.
When designing output, systems analysts must accomplish the following.
§ Determine what information to present
§ Decide whether to display, print, or “speak” the information and select the output
medium.
§ Arrange the presentation of information in an acceptable format.
§ Decide how to distribute the output to intended recipients.
That alignment of information on a display or printed document is termed as layout.
Accomplishing the general activities listed above will require specific decisions, such as
whether to use preprinted forms when preparing reports and documents, how many lines to
plan on a printed page, or whether to use graphics and color.
The output design is specified on layout performs, sheets that describe the location
characteristics, and format of the column headings and pagination. As we indicated at the
beginning of this discussion, these elements are analogous to an architect’s blue print that
shows the location of the each component.

3.4 DATABASE DESIGN

The general theme behind a database is to handle information as an integrated whole.


A database is a collection of inter-related data stored with minimum redundancy to serve
single users quickly and efficiently. The general objective is to make information necessary,
quick, inexpensive and flexible for the user.

Database Tables
user Table
Field Name Data Type Size Allow Null Constrain
u_id int 4 No PK
u_fnm varchar 35 No
u_unm varchar 25 No
u_pwd varchar 20 No
u_gender varchar 7 No
u_email varchar 35 No
u_contact varchar 12 No
u_city varchar 20 No

Category Table
Field Name Data Type Size Allow Null Constrain
cat_id int 4 No PK
cat_nm varchar 30 No

Subcat Table
Field Name Data Type Size Allow Null Constrain
subcat_id int 4 No PK
Parent_id Int 4 No
Subcat_nm varchar 35 No

Contact Table
Field Name Data Type Size Allow Null Constrain
con_id int 4 No PK
Con_nm varchar 40 No
Con_email varchar 40 No
Con_query Longtext 0 No

Book Table
Field Name Data Type Size Allow Null Constrain
b_id int 4 No PK
b_nm varchar 60 No
b_subcat varchar 25 No
b_desc longtext 0 No
b_publisher varchar 40 No
b_edition varchar 20 No
b_isbn varchar 10 No
b_page int 5 No
b_price int 5 No
b_img longtext 0 No
b_pdf longtext 0 No

Cart Table
Field Name Data Type Size Allow Null Constrain
cart_id int 4 No PK
user_nm varchar 20 No
Book_id varchar 10 No PK
Book_name varchar 25 No
qty int 4 No
Amount Float No
Checkout Table
Field Name Data Type Size Allow Null Constrain
order_id int 4 No PK
Cart_id varchar 60 No
Order_date datetime No
Total_Amou Float 0 No
nt
CHAPTER 4

DETAILED SYSTEM DESIGN

4.1 Implementa-on approaches

The So>ware Design DescripAon Document has been used as input in the implementaAon
process. The actual implementaAon has been done using PHP. PHP has been used to
interact with the backend database. In this implementaAon, My SQL Server has been
used as the backend RDBMS. PHP processes the inputs or commands given by the user
and translates them in the commands understandable to the backend database. The
output produced by the backend database is also handled by PHP which then displayed on
theBrowserscreen.

Coding and Screenshots

User Interface

RegistraAon page:
Login Page:

Home Page:
Shopping Cart:
Contact Page:

Search Page:
Admin Panel
Database:

4.2 Code efficiency


Code efficiency has been achieved through proper validaAon using various methods in PHP
coding. Fist no data can be added, viewed, edited and deleted to database without login
or sessions. For this we have implanted session tracking techniques through PHP. Codlings
have been used to validate various forms to ensure correct data should enter in
database.

4.3 Tes(ng Approach

TESTING PROCEDURES
• Unit Tes7ng: A Unit corresponds to a form/class in the package. Unit tes7ng
focuses on verifica7on of the corresponding form or class. In this level we
have tested all our forms/classes individually. This tes7ng includes tes7ng of
control paths, interfaces, local data structures, logical decisions, boundary
condi7ons, and error handling. From this tes7ng we were able to save,
retrieve, update, delete and the search records on a table.
• Integra7on Tes7ng: Integra7on tes7ng is used to verify the combina7on
of the soCware modules. In this level, we have tested by combining all unit
tested forms into a subsystem. Here we found that the subsystems are
performing well
• System Tes7ng: System tes7ng is used to verify, whether the developed
system meets the requirements.
• Acceptance Tes7ng: Acceptance is the part of the project by which the
customer accepts the product. The system under considera7on is tested for
user acceptance by constantly keeping in touch with the system users at 7me
of developing and making changes whenever required.
We hope that aCer the acceptance tes7ng the system will perform the best result for
the organiza7on. When modifica7on will be made, we will use regression tes7ng
during the maintenance of the system.

The SoCware System delivered to the customer may undergo changes. Changes may
be due to addi7on of new func7onal modules or performance enhancement.
For this purpose proper maintenance of the system is
must.
4.3.1 Unit Tes7ng
CHAPTER 5

WORK ETHICS

5.1 Test Reports

5.2 Future Scope of the project


SoCware development is never –ending process and con7nues the life of the soCware
as per the changing needs of the user from 7me to 7me. The project is no doubt has
been developed keeping in mind easy modifica7on and enhancement that may be
required from 7me to 7me.

However, there are many scopes to modify this soCware. As because due to shortage
of 7me, we here become unable to include many things. We are trying to cover all
their exis7ng system for sales return records of the items but due to shortage of 7me
we become unable to include many things. Due to lake of 7me, I here include none of
them and a future scope one can develop these returns which are so much essen7al.
Only with a liRle more doing it is possible to design the formats for those returns.
Moreover, an on-line system will be more helpful to the organiza7on. With almost the
same data with only a liRle modifica7on an on-line system can be designed to fulfil
their demands. All these can be considered to be future scope for this project.

You might also like