Book Store
Book Store
Book Store
CONTENTS
ACKNOWLEDGEMENT
SYNOPSIS
INTRODUCTION
BUSINESS REQUIREMENT
DATABASE IMPLEMENTATION
BIBLIOGRAPHY
ACKNOWLEDGEMENT
We express our grateful acknowledgement to our institution
Last, but certainly not the least we thank all our friends who have
been very helpful throughout the project with their invaluable suggestions at
time to time, and also like to thank all the teaching and non-teaching
SYNOPSIS
This project is a website that acts as a central book store. This web
project is developed using PHP as the front end and Mysql as a back-end. The
Mysql database stores various book related details. A user visiting the website
can see a wide range of books arranged in respective categories and
subcategories. 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.
CHAPTER 1
INTRODUCTION
In the world of software development there lots of improvement in the
area of architectural design and principles. The philosophies and
implementation details arechanging as the people guiding the development
of the application. In this fantasticand yet sometimes complex world of
software development there are some tried andtrue architecture patternsand
software development guidelines employed by mostarchitects. Also your
design must have an ability to turn towards innovation instead oflending
itself to common practices. Web services are one such area where
architectsmust lean on their creative side and hope that their solutions are
still successful. Inthis report we will explain an exciting voyage down the
road of Web servicesapplication. From requirements to use cases, to
database design, to componentframeworks, to user interfaces, we will cover
each and every aspect of system designrequired to build an application with
collaborative Web services. The reason why weselected online Bookstore web
service is everybody walking down the street has someidea about
bookstores. The objective of this project is to develop an e- book storewhere
books can be bought from the comfort of home through the Internet.
The existing system has certain limitations than a web based system.
In order to wipe out those limitations in the computerized system, we
introduced a web based system. This will be able to meet all the
requirements of the user. The proposed system will be able to implement
easily. In this system there is no need of keeping files or records by the
administrator. He can keep the records in the computer system itself and
can be shared among networks. The user is able to access all the
information at any point of time.
The Figure 1.1 shows general block diagram describing the activities
performed in the system.
Fig 1.1Architecture
Registered User
User is the person, who wants to Purchase any Books. The main functions of
the users are:
User Login
Check the details about us
Contact to Admin
Search Book
Add book to Cart
View cart
Delete Items
Edit quantity of book
Provide Shipping details
Confirm Order
Payment at delivery
Logout
CHAPTER 2
BUSINESS REQUIREMENTS
One has to survey the market and get option of different people; they
want the books at their door for many reasons. The book store must try to
target different universities, schools and colleges. Different strategies and
procedures are to be taken in to consideration to improve the business.
The system can browse the detailed information of all kinds of books.
It can help customer to login the system and search the books he most
wanted immediately. Then customer can manage the shopping cart of their
own. On the side of administrator, he can add book, manage the orders of
book and soon.
The system is needed to have maintenance, simple interface and ease of
use.
The bookstore shall provide the ability to search the master book
catalogue.
The bookstore shall provide electronic links between the Web and
database and the shipping fulfilment system.
The bookstore shall provide electronic links between the Web and
database and the inventory management system.
CHAPTER 3
DATA BASE DESIGN MODEL
3.1 Introduction
A database model is a type of data model that determines the logical
structure of a database and fundamentally determines in which
manner data can be stored, organized and manipulated. The most popular
example of a database model is the relational model, which uses a table-
based format.
3.2 ER diagram
The Entity-Relationship Data Model (ERD) perceives the real world
as consisting of basic objects, called entity & relationship among these
objects.
3.3 DFD
A data flow diagram is the graphical representation of the flow
of data through an information system. DFD is very useful in
understanding a system and can be efficiently used during analysis.
A DFD shows the flow of data through a system. It views a
system as a function that transforms the inputs into desired outputs.
Any complex systems will not perform this transformation in a single
step and a data will typically undergo a series of transformations before
it becomes the output. With a data flow diagram, users are able to
visualize how the system will operate that the system will accomplish
and how the system will be implemented, old system data flow diagrams
can be drawn up and compared with a new systems data flow diagram
to draw comparisons to implement a more efficient systems.
Data flow diagrams can be used to provide the end user with a
physical idea of where the data they input, ultimately as an effect upon
the structure of the whole system.
3.2.1 DFD Symbols:
In the DFD, there are four symbols:
A square defines a source (originator) or destination of system
data.
As shown in Figure 3.3 and 3.4 the external objects that interact
directly with the system are called actors. Actors include humans, external
devices and other software systems.
The class diagram is the main building block of object oriented modelling. It
is used both for general conceptual modelling of the systematic of the
application, and for detailed modelling translating the models into
programming code. Class diagrams can also be used for data modelling. The
classes in a class diagram represent both the main objects, interactions in
the application and the classes to be programmed.
Chapter 4
DATABASE IMPLEMENTATION
1. Book
2. Category
3. Contact
4. Shipping_details
5. Subcat
6. User
CHAPTER 5
5.1 Introduction
The Analysis Phase is where the project lifecycle begins. The Analysis Phase
is where you break down the deliverables in the high-level Project Charter
into the more detailed business requirements. The Analysis Phase is also the
part of the project where you identify the overall direction that the project
will take through the creation of the project strategy documents.
5.2.1 Introduction
5.2.1.2 Purpose
The main goal of this project was to create shopping cart, which allows
customers to shop and purchase the book online. Moreover, the project
is also designed in such a way it lets managers manage the products
information. Customers can orders products, and they will be contacted
to further process the orders.
In today’s busy world, people don’t have time for their personal
needs. And the technology fast that anyone can do by sitting in a room.
If someone buy a new things, he can buy online with the help of
Internet.
5.2.1.3 Various Divisions in Project
Admin side
It consists of the features such as Creating Username & Password,
Input Items, Modify Items, Delete items under different categories and
subcategories, and Logout.
Customer side consists of the features such as Select Products,
Search Products, Buy Items, Continue Shopping, View Cart,
Checkout, Sign-in, Confirm, Send Order. There are also the future
works for this application. There are mainly two such objectives
which are as follows:
To shop in the comfort of your home, without having to step
out of the door.
To be able to easily save money and compare prices from
website to website.
5.3 Requirements
5.3.1 SoftwareRequirements
Software – XAMPP Server
Database - MySQL
5.3.2 HardwareRequirements
Operating System - Windows 7
Database Server:
MySQL officially, but also called "My Sequel" is (as of 2008) the
world's most widely used open source relational database management
system (RDBMS) that runs as a server providing multi-user access to a
number of databases. It is named after co-founder Michael Widenius'
daughter, My. The SQL phrase stands for Structured Query Language.
The MySQL development project has made its source code available
under the terms of the GNU General Public License, as well as under a
variety of proprietary agreements.
Notepad++
Notepad++ is a text editor and source code editor for use with
Microsoft Windows. Unlike Notepad, the built-in Windows text editor, it
supports tabbed editing, which allows working with multiple open files in a
single window. The project's name comes from the Cincrement operator.
CHAPTER 6
USER INTERFACE AND FUNCTIONALITY DESIGN
User interface design (UI) or user interface engineering is
the design of user interfaces for machines and software, such
as computers, home appliances, mobile devices, and other electronic
devices, with the focus on maximizing usability and the user experience.
The goal of user interface design is to make the user's interaction as simple
and efficient as possible, in terms of accomplishing user goals.
The objective of designing a site is to ensure that when the users open
up the site they see the information in a format that is easy to read and
relevant. This is further complicated by the fact that users now use a large
variety of devices with varying screen sizes and resolutions thus forcing the
designer to take into consideration these aspects when designing the site.
They need to ensure that their site comes up correctly in different browsers
(cross-browser), different operating systems (cross-platform) and different
devices (cross-device), which requires careful planning on the side of the
developer.
HTML elements form the building blocks of all websites. HTML allows
images and objects to be embedded and can be used to create interactive
forms. It provides a means to create structured documents by denoting
structural semantics for text such as headings, paragraphs, lists, links,
quotes and other items.
JAVA Script
PHP
PHP code can be simply mixed with HTML code, or it can be used in
combination with various templating engines and web frameworks. PHP
CSS
Project must validate the form on the client side so processing will be
fast than server-side validation. So, most of the web developers prefer
JavaScript form validation. That is it must validate name, password, email,
date, mobile number etc fields.
Event Object
Description
Property
SrcElement The element that fired the event
Type Type of event
returnValue Determines whether the event is cancelled
cancelBubble Can cancel an event bubble
clientX Mouse pointer X coordinate relative to window
clientY Mouse pointer Y coordinate relative to window
Mouse pointer X coordinate relative to element that
offsetX
fired the event
Mouse pointer Y coordinate relative to element that
offsetY
fired the event
button Any mouse buttons that are pressed
altKey True if the alt key was also pressed
ctrlKey True if the ctrl key was also pressed
shiftKey True if the shift key was also pressed
keyCode Returns UniCode value of key pressed
Table 6.1 Element object’s Property Description
Style sheets solve these problems at the same time they supersede the
limited range of presentation mechanisms in HTML. Style sheets make it
easy to specify the amount of white space between text lines, the amount
lines are indented, the colors used for the text and the backgrounds, the
font size and style, and a host of other details.
CHAPTER 7
IMPLEMENTATION
Implementation is the realization of an application, or execution of a plan,
idea, model, design, specification, standard, algorithm, or policy. In other
words, an implementation is a realization of a technical specification or
algorithm as a program, software component, or other computer system
through programming and deployment. Many implementations may exist for
a given specification or standard.
7.1 Introduction
<?php
$mysqli = new mysqli("localhost", "username", "password", "dbname");
?>
2. After the code connects to MySQL and selects the database, you can
run SQL queries and perform other operations. For example, the following
PHP code runs a SQL query that extracts the names from the user table,
and stores the result in the $result variable:
<?php
$result = $mysqli->query("SELECT name FROM user");?>
HTML elements form the building blocks of all websites. HTML allows
images and objects to be embedded and can be used to create interactive
forms. It provides a means to create structured documents by denoting
structural semantics for text such as headings, paragraphs, lists, links,
quotes and other items.
JAVA Script
PHP
PHP code can be simply mixed with HTML code, or it can be used in
combination with various templating engines and web frameworks. PHP
code is usually processed by a PHP interpreter, which is usually
implemented as a web server's native module or a Common Gateway
Interface (CGI) executable. After the PHP code is interpreted and executed,
the web server sends the resulting output to its client, usually in the form of
a part of the generated web page; for example, PHP code can generate a web
page's HTML code, an image, or some other data. PHP has also evolved to
include a command-line interface (CLI) capability and can be used in
standalonegraphical applications.
CSS
Simplify
o The Best UI Is No UI
o Less UI Is Better UI
7.4.1 Prototype
User interfaces (UI) should be designed from the list of user scenarios and
requirements that were identified in the user analysis step.
7.4.2 Construct
When one implement the user interface for an application, consider the
following:
Command structure
Create new custom controls only if you cannot get the functionality that you
want from one of the standard Windows controls. New custom controls are
very costly to develop and require additional work to make them accessible.
If your application requires custom controls, make sure that they are
adequately exposed to assistive technologies. For more information,
see Custom Controls and Windows Automation API.
Windows includes several technologies that you can use to add visual
interest and set the UI apart from that of other applications. These include
specifying the visual styles of controls, adding animations to UI elements,
and implementing various visual effects in the UI. For more information,
see Visual Styles, Windows Animation Manager, and Desktop Window
Manager.
7.4.3 Simplify
A successful user experience depends on the approach, perspective, and
assumptions of the developer during the design process. Achieving a basic
understanding of how an application may be used by the target audience
requires the ability to think broadly, beyond the constraints of what suits
the needs of the developer. Investing this time, effort, and research at the
beginning of a project will pay dividends at the end.
The Best UI Is No UI
UI implies that the user has to interact with the application to make
something happen. In the ideal case, no interaction is necessary. From the
user's perspective, it just works. If a feature can be added that safely
removes a user interaction, it makes the user experience significantly better.
CHAPTER 8
TESTING
The purpose of testing is to discover errors. Testing is the process
of trying to discover every conceivable fault or weakness in a work
product. It provides a way to check the functionality of components,
sub-assemblies, assemblies and/or a finished product.
8.1 Introduction
Testing is the process of exercising software with the intent
of ensuring that the software system meets its requirements
and user expectations and does not fail in an unacceptable
manner. The system has been verified and validated by running
the test data and live data.
Pass
No Data input Excepted Output Actual Output /
Fail
Error message: Error message:
All files are
1 *indicates *indicates Pass
empty
compulsory field* compulsory field*
Error message: Error message:
2 Email Invalid Email- Invalid Email- Pass
address address
Password Error message: Error message:
3 and confirm Both Password Both Password Pass
Password does not match does not match
4 Login Login to the Login should be Fail
system should be successful and the
try with the login user should enter
assigned by the into the system
admin and the
correct password
1. The home page is as shown in Figure 6.1 has various menus by which the
user can register and login and can also view book listing.
2. On clicking the Register option the user registration form appears where
the user needs to enter the required details as shown in Figure 6.2.
3. Once the registration process is done, the user needs to login by entering
the registered email and password as shown in Figure 6.3.
CHAPTER 10
CONCLUSION AND FUTURE SCOPE
10.1 Conclusion
We conclude that My Book Shop 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 the books.
REFERENCES
[1] www.code-project.com
[2] www.w3schools.com
[3] www.php.net