Akshata Tanaji Ghadage Project Report
Akshata Tanaji Ghadage Project Report
Akshata Tanaji Ghadage Project Report
Project Report
On
ONLINE BOOK STORE
Submitted by
Akshata Tanaji Ghadage
Roll No.: 21417
Class: MCA- I
Guided by
Prof. Ankush Kudale
For the Academic Year 2021-22
1
Date:-30-3-2022
CERTIFICATE
This is to certify that Ms Akshata Tanaji Ghadage has successfully / partially completed his project
work entitled “Online Book Store” in partial fulfillment of MCA-I SEM-I Mini Project for the year
2021-2022. She have worked under our guidance and direction.
Examiner 1 Examiner 2
Date:
Place: Pune
2
DECLARATION
We certify that the work contained in this report is original and has been done by us under the
guidance of my supervisor(s).
• The work has not been submitted to any other Institute for any degree or diploma.
• We have followed the guidelines provided by the Institute in preparing the report.
• We have conformed to the norms and guidelines given in the Ethical Code of Conduct of
the Institute.
• Whenever we have used materials (data, theoretical analysis, figures, and text) from other
sources, we have given due credit to them by citing them in the text of the report and giving
their details in the references.
3
ACKNOWLEDGEMENT
We have immense pleasure in expressing our sincerest and deepest sense of gratitude towards our
guide prof. Ankush Kudale for the assistance, valuable guidance and co- operation in carrying out
this Project successfully. We have developed this project with the help of Faculty members of our
institute and we are extremely grateful to all of them. We also take this opportunity to thank Director
MCA Dr. Chandrani Singh, for providing the required facilities in completing this project. We are
greatly thankful to our parents, friends and faculty members for their motivation, guidance and help
whenever needed.
Thank You,
4
TABLE OF CONTENTS
Index
CHAPTER 1: INTRODUCTION
5
3.8 Collaboration Diagram
Chapter 1: INTRODUCTION
6
>| In Online Book Store system Project customer can search desired book and buy it online In
Online Book Store Project customer can also pay their invoice bill online.
>| This project is menu driven. Online store system project provides facility of maintaining details of
customer, authors, publishers, books etc.
>| Online book store system project also manage some information of customers and back office
book order processing, such as customer details, order processing status etc. Detail of any record can
be searched by providing its id
>| The Online Book Store Project provides customers with online shopping facility through a web
browser A customer can, create, login to his account, sort books by their category, place books into a
shopping cart and pay bill using his credit card details. The Administrator will have additional
functionality when compared to the common user. He can add, delete and update the author,
publisher book categories book details, member information and also confirm a placed order Online
Book Store is developed using JAVA & MYSQL programming language
>| Online Book Store System project is two parts according to user role
7
|> Provide a web user interface to add, view, delete records in different areas.
|> Provide a user interface for users to explore the store and choose items to buy.
|>Create different system users and assign different roles with related permissions.
|>Manage all the account details such as user name, phone numbers, address. Websites, email
addresses of the entire customer from one central location.
|>Manage all the details regarding features of the books such Company, book dimension, book
cost.
|>Confirmation of end user identity and will verify which users are authorized to receive support.
|>Maintain history of each customer and their related information about the book sale, & support
related transactions.
8
|>View all the details of all the interactions made with the customer.
Hardware Specification :-
Database:- MYSQL
9
An online bookstore software projects that acts as a central database containing various books in
stock along with their title, author and cost. This project is a website that acts as a central book store.
This web project is developed using php as the front end and sql as a back-end. The sql database
stores various book related details. A user visiting the website can see a wide range of books
arranged in respective categories. The user may select desired book and view its price. The user may
even search for specific books on the website. Once the user selects a book , he then has to fill in a
form and the book is booked for the user. The software has the following three main components:- 1.
Implement of new user to register and login. 2. Implement user to choose any book. 3. Implement
the user to buy books.
|>Module Admin
|>Customer's module
|>Module of login
|>Module of registration
The Online Book Store Project provides customers with online shopping facility through a
web browser A customer can, create, login to his account, sort books by their category, place
books into a shopping cart and pay bill using his credit card details. The Administrator will
have additional functionality when compared to the common user. He can add, delete and
update the author, publisher book categories book details, member information and also
confirm a placed order Online Book Store is developed using JAVA MYSQL programming
language
10
Chapter 3: ANALYSIS & DESIGN
3.1Class Diagram :-
11
12
3.2 Object Diagram :-
13
3.4 Deployment Diagram:-
14
15
3.5 Use Case Diagrams :-
16
17
3.7 Sequence Diagram :-
18
3.8 Collaboration Diagram:-
19
3.9 State Chart Diagram :-
20
3.10 Data dictionary :-
Table books
author varchar(100)
barcode varchar(100)
name Varchar(100)
price int
quantity int
username Varchar(100)
password Varchar(100)
21
Address text
Phone Varchar(100)
Mail ID Varchar(100)
22
Chapter 4: USER MANUAL
23
Admin Login:-
24
After Successfully Login as a Admin:-
25
User Login:-
26
Select Buy Books:-
27
Buy Books Option for User:-(Bill Generated)
28
4.2 Data Reports:-
AddBookServelet.java
package servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import constants.IOnlineBookStoreConstants;
import jakarta.servlet.GenericServlet;
29
import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import sql.IBookConstants;
PrintWriter pw = res.getWriter();
res.setContentType(IOnlineBookStoreConstants.CONTENT_TYPE_TEXT_HTML);
int bPrice
=Integer.parseInt(req.getParameter(IBookConstants.COLUMN_PRICE));
30
int bQty =
Integer.parseInt(req.getParameter(IBookConstants.COLUMN_QUANTITY));
try {
ps.setString(1, bCode);
ps.setString(2, bName);
ps.setString(3, bAuthor);
ps.setInt(4, bPrice);
ps.setInt(5, bQty);
int k = ps.executeUpdate();
if(k==1)
RequestDispatcher rd =
req.getRequestDispatcher("AddBook.html");
rd.include(req, res);
31
else
RequestDispatcher rd =
req.getRequestDispatcher("AddBook.html");
rd.include(req, res);
catch(Exception e)
e.printStackTrace();
32
AdminLoginServlet.java
package servlets;
import constants.IOnlineBookStoreConstants;
import jakarta.servlet.GenericServlet;
import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.Cookie;
import sql.IUserContants;
import java.io.*;
import java.sql.*;
PrintWriter pw = res.getWriter();
33
res.setContentType(IOnlineBookStoreConstants.CONTENT_TYPE_TEXT_HTML);
try {
+ IUserContants.COLUMN_USERTYPE + "=1");
ps.setString(1, uName);
ps.setString(2, pWord);
ResultSet rs = ps.executeQuery();
if (rs.next()) {
RequestDispatcher rd =
req.getRequestDispatcher("Sample.html");
rd.include(req, res);
34
pw.println("<div class=\"tab\">Admin login Successful</div>");
pw.println("<div class=\"tab\"><br/><a
href=\"AddBook.html\">ADD BOOKS</a><br/></div>");
pw.println("<div class=\"tab\"><br/><a
href=\"RemoveBooks.html\">REMOVE BOOKS</a><br/></div>");
pw.println("<div class=\"tab\"><br/><a
href=\"viewbook\">VIEW BOOKS</a></div>");
} else {
RequestDispatcher rd =
req.getRequestDispatcher("AdminLogin.html");
rd.include(req, res);
} catch (Exception e) {
e.printStackTrace();
35
4.4 Limitations and Bibliography :-
4.4.1:-Limitations:-
b)Lot of Modules and many lines of code is there in my Project so it is not very fast
c)Cart Option is Not Available to see the status of delivery of the Books
4.4.2:-Bibliography:-
The Internet has become a major resource in modern business, thus electronic shopping has
gained significance not only from the entrepreneur’s but also from the customer’s point of view. For
the entrepreneur, electronic shopping generates new business opportunities and for the customer, it
makes comparative shopping possible. As per a survey, most consumers of online stores are
impulsive and usually make a decision to stay on a site within the first few seconds. “Website design
is like a shop interior. If the shop looks poor or like hundreds of other shops the customer is most
likely to skip to the other site”. Hence we have designed the project to provide the user with easy
navigation, retrieval of data and necessary feedback as much as possible. In this project, the user is
provided with an e commerce web site that can be used to buy books online. To implement this as a
web application we used Java as the Technology.
A good shopping cart design must be accompanied with user-friendly shopping cart
application logic. It should be convenient for the customer to view the contents of their cart and to be
able to remove or add items to their cart. The shopping cart application described in this project
provides a number of features that are designed to make the customer more comfortable. This project
helps in understanding the creation of an interactive web page and the technologies used to
implement it. The design of the project which includes Data Model and Process Model illustrates
how the database is built with different tables, how the data is accessed and processed from the
tables. The building of the project has given me a precise knowledge about how Java is used to
36
develop a website, how it connects to the database to access the data and how the data and web
pages are modified to provide the user with a shopping cart application
37