Akshata Tanaji Ghadage Project Report

Download as pdf or txt
Download as pdf or txt
You are on page 1of 37

A

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

Sinhgad Technical Education Society’s


SINHGAD INSTITUTE OF MANAGEMENT,

Vadgaon Bk, Pune

(Affiliated to Savitribai Phule Pune University, Approved by AICTE&


Accredited by National Board of Accreditation, New Delhi).

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.

Prof. Ankush Kudale Dr. Chandrani Singh

Project Guide Director, SIOM-MCA

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.

Name and Signature of Project Team Members:

Sr. No. Seat No. Name of students Signature of student

1 20008 AKSHATA TANAJI GHADAGE

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,

AKSHATA TANAJI GHADAGE

4
TABLE OF CONTENTS
Index

Chapter Page number

CHAPTER 1: INTRODUCTION

1.1 Existing System

1.2 Need for System

1.3 Operating Environment Hardware and Software

CHAPTER 2: PROPOSED SYSTEM

2.1 Proposed System (Introduction of system)

2.2 Module specifications (Scope)

2.3 Objectives of System

CHAPTER 3: ANALYSIS & DESIGN

3.1 Class Diagram

3.2 Object Diagram

3.3 Component Diagram

3.4 Deployment Diagram

3.5 Use Case Diagrams

3.6 Activity Diagram

3.7 Sequence Diagram

5
3.8 Collaboration Diagram

3.9 State Chart Diagram

3.10 Data dictionary

CHAPTER 4: USER MANUAL

4.1 User Interface Screens (Input)

4.2 Output Screens with data

4.3 Data Reports

4.4 Sample program code

4.5 Limitations and Bibliography

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

>| Administrator module-

>| Customer/User module

1.1 Existing System and Need for System

7
|> Provide a web user interface to add, view, delete records in different areas.

|> We Provide a user interface to enter computer details.

|> Provide a user interface to change details of all the Books

|> Provide a user interface for users to explore the store and choose items to buy.

1.2 Scope of Work

|>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.

|>Track all the customers and their contact details.

|>Group the contacts together in a single account according to some criteria.

|>Capture, View and edit all user transactions.

|>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.

1.3 Operating Environment-Hardware & Software

Hardware Specification :-

Processor : Intel Dual based System

Processor Speed : 1GHz to 2GHz

RAM : 512MB to 1GB

Hard Disk : 4GB to 30GB

Keyboard : 104 keys

Software Requirement Specification :-

Language :- Java , HTML, CSS, JavaScript, Bootstrap

Database:- MYSQL

Operating System:- Windows NT/ XP/VISTA/7/8/10

IDE :- Eclipse IDE for Java and Web Developers

Chapter 2: PROPOSED SYSTEM

2.1 Proposed System (Introduction of system):-

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.

2.2 Module Specifications :-

|> Category Module

|>Sub-category module • Book Records Module

|>Module Admin

|>Customer's module

|>Module of login

|>Module of registration

|>Book Order Module

2.3 Objectives of System:-

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 :-

3.3 Component Diagram :-

13
3.4 Deployment Diagram:-

14
15
3.5 Use Case Diagrams :-

3.6 Activity Diagram :-

16
17
3.7 Sequence Diagram :-

18
3.8 Collaboration Diagram:-

19
3.9 State Chart Diagram :-

20
3.10 Data dictionary :-

Books Table in onlinebookstore

Table books

author varchar(100)

barcode varchar(100)

name Varchar(100)

price int

quantity int

Users Table in Onlinebookstore

username Varchar(100)

password Varchar(100)

First Name Varchar(100)

Last Name Varchar(100)

21
Address text

Phone Varchar(100)

Mail ID Varchar(100)

User type int

22
Chapter 4: USER MANUAL

4.1 User Interface Screens with data (Input/ Output):-

Before Giving Input:-

23
Admin Login:-

24
After Successfully Login as a Admin:-

View Books Sample:-

25
User Login:-

After Login Successfully as a User:-

26
Select Buy Books:-

27
Buy Books Option for User:-(Bill Generated)

28
4.2 Data Reports:-

To solve actual problems in an industry, software developer or a team of developers must


incorporate a development strategy that encompasses the process, methods and tools layers and
generic phases. This strategy is often referred to as process model or a software developing
paradigm. A process model for software developing is chosen based on the nature of project and
application, the methods and tools to be used, and the controls and deliverables that are required. All
software development can be characterized as a problem solving loop in which four distinct stages
are encountered: Status quo, Problem definition, technical development and solution integration.
Regardless of the process model that is chosen for a software project all of the stages coexist
simultaneously at some level of detail.

4.3 Sample program code:-

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;

public class AddBookServlet extends GenericServlet{

public void service(ServletRequest req,ServletResponse res) throws


IOException,ServletException

PrintWriter pw = res.getWriter();

res.setContentType(IOnlineBookStoreConstants.CONTENT_TYPE_TEXT_HTML);

String bCode = req.getParameter(IBookConstants.COLUMN_BARCODE);

String bName = req.getParameter(IBookConstants.COLUMN_NAME);

String bAuthor = req.getParameter(IBookConstants.COLUMN_AUTHOR);

int bPrice
=Integer.parseInt(req.getParameter(IBookConstants.COLUMN_PRICE));

30
int bQty =
Integer.parseInt(req.getParameter(IBookConstants.COLUMN_QUANTITY));

try {

Connection con = DBConnection.getCon();

PreparedStatement ps = con.prepareStatement("insert into " +


IBookConstants.TABLE_BOOK + " values(?,?,?,?,?)");

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);

pw.println("<div class=\"tab\">Book Detail Updated


Successfully!<br/>Add More Books</div>");

31
else

RequestDispatcher rd =
req.getRequestDispatcher("AddBook.html");

pw.println("<div class=\"tab\">Failed to Add Books! Fill up


CareFully</div>");

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.*;

public class AdminLoginServlet extends GenericServlet {

public void service(ServletRequest req, ServletResponse res) throws IOException,


ServletException {

PrintWriter pw = res.getWriter();

33
res.setContentType(IOnlineBookStoreConstants.CONTENT_TYPE_TEXT_HTML);

String uName = req.getParameter(IUserContants.COLUMN_USERNAME);

String pWord = req.getParameter(IUserContants.COLUMN_PASSWORD);

try {

Connection con = DBConnection.getCon();

PreparedStatement ps = con.prepareStatement("SELECT * FROM " +


IUserContants.TABLE_USERS + " WHERE "

+ IUserContants.COLUMN_USERNAME + "=? AND " +


IUserContants.COLUMN_PASSWORD + "=? AND "

+ 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");

Cookie ck = new Cookie("usertype","admin");

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);

pw.println("<div class=\"tab\">Incorrect UserName or


PassWord</div>");

} catch (Exception e) {

e.printStackTrace();

35
4.4 Limitations and Bibliography :-

4.4.1:-Limitations:-

a)Unable to Make an Android app of the Dynamic Project

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

d)Payment Option is Not there

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

You might also like