Professional Documents
Culture Documents
Submitted
By
Shiekh Muzafar
Enrollment No: 147167670
Indira Gandhi National Open University in partial fulfillment of the requirement for the
work carried out by Mr. Shiekh Muzafar Enrollment No: 147167670 under my
guidance.
The matter embodies in this project is genuine work done by student and has not
been submitted whether to this University or to any other University/ Institute for the
once, one puts in lot of physical and mental efforts in the process, one takes
guide Mr. Peer Javeed Iqbal, for his valuable guidance, monitoring and
Srinagar and Mr. ___________, Assistant Regional Director, IGNOU for their
Last but not the least I like to thank my friends whose constant nagging
Shiekh Muzafar
09-09-2017
CONTENT AT A GLANCE
Sr. No Title Page No.
1. INTRODUCTION 7
2. ANALYSIS 9
3. DESIGN APPROACH 15
4. PROJECT MODULES
5. IMPLEMENTATION
7. TESTING
8. TEST CASES
9. OUTPUT SCREENS
10. CONCLUSION
11. FUTURE ENHANCEMENTS
12. BIBILIOGRAPHY
Introduction
The Shopping Portal is mainly useful for people havent time to go to
shopping, they can just enter this shopping portal and buy whatever they
want from their home. Even if it is night or day they can enter the shopping
portal, and chose different items like electronics, books, toys etc..
will enter shipping details and then will choose payment method. Current
(COD).
created his account he can login in with his own username and password,
at that time automatically one shopping cart will be created, once user
select an item it will add to cart. In case user thinks the selected item is not
useful for me, then he can delete that item from shopping cart.
Customer has some items in his cart, these items will remain there even if
he is logged out of his account unless deleted. The selected items are
stored at cart with specific users with his allotted carts, after the items that
are in cart are bought those items are then automatically deleted from the
cart.
System Analysis
Existing System
store the information like product details, purchases, sales details and
Disadvantages
Daily sales and purchases details must be entered into books are very
difficult to maintain.
the users of this system for better results for their maintenance in the
Feasibility study is a high level capsule version of the entire system analysis
The system has been tested for feasibility in the following points.
1. Technical Feasibility
2. Economic Feasibility
3. Operational Feasibility.
1. Technical Feasibility
The project entitles "SHOPPING PORTAL is technically feasible because of
the below mentioned features. The project was developed in Core PHP
these make PHP an appropriate language for this project. Thus the PHP is a
powerful language.
2. Economic Feasibility
The computerized system will help in automate the selection leading the
profits and details of the organization. With this software, the machine and
costs incurred of not creating the system are set to be great, because
3. Operational Feasibility
In this project, the management will know the details of each project where
if any inquires for that particular contract can be known as per their
Hardware Requirements:-
Software Requirements
Database : My SQL
method for this stage class of problems is a system development life cycle
modal in which each stage of development is well defined and has straight
forward requirements for deliverables, feedback and sign off. The system
The basic idea of the system development life cycle is that there is a well-
basis for management and control because they define segments of the
The phases in the life cycle for information system development are
agreement on the flow of development steps and the necessity for control
Once the software requirements have been analyzed and specified the
implementation and testing that are required to build and verify the
software.
The design activities are of main importance in this phase, because in this
have the final bearing upon reliability and maintainability of the system.
into data.
UML Diagrams
UML is a way of visualizing a software program using a collection of
diagrams. The notation has evolved from the work of Grady Booch, James
used for object-oriented design, but it has since been extended to cover a
software development.
specifying, visualizing and documenting the system. This is the step while
developing any product after analysis. The goal from this is to produce a
model of the entities involved in the project which later need to be built.
The representation of the entities that are to be used in the product being
Sequence Diagram
Collaboration Diagram
Activity Diagram
State Diagram
Use Case Diagram
Use case diagrams model behavior within a system and helps the
developers understand of what the user require. The stick man represents
Use case diagram can be useful for getting an overall view of the system
and clarifying who can do and more importantly what they cant do.
Use case diagram consists of use cases and actors and shows the
The purpose is to show the interactions between the use case and
actor.
system.
rendered as an ellipse with solid line including only its name. Use case
diagram is a behavioral diagram that shows a set of use cases and actors
Registration
Login
User
Buy Products
Activity Diagram
An activity diagram visually presents a series of actions or flow of control
are often used in business process modeling. They can also describe the
end.
Sequence Diagram
arranged along the X-axis and messages ordered in increasing time along
the Y-axis.
Sequence Diagram
Registratione Authentication
Buying ``
Checking
Valid User
Not Valid
Collaboration Diagram
A collaboration diagram is an introduction diagram that emphasizes the
Collaboration Diagram
2.Authintication
System Database
User Register
4.Checking
3.Buying
5.Valid User
Main Page
Class Diagram
Class is nothing but a structure that contains both variables and methods.
The Class Diagram shows a set of classes, interfaces, and collaborations and
object oriented systems and is used to give the static view of a system. It
shows the dependency between the classes that can be used in our system.
The interactions between the modules or classes of our projects are shown
known as a Harel state chart or a state machine diagram. This UML diagram
models the dynamic flow of control from state to state of a particular object
within a system.
User Registration
Valid User
Buy A product
Data Flow Diagrams
The DFD takes an input-process-output view of a system i.e. data objects
hierarchical fashion i.e. the first data flow model represents the system as a
whole. Subsequent DFD refine the context diagram (level 0 DFD), providing
information domain & functional domain at the same time. As the DFD is
A context-level DFD for the system the primary external entities produce
the system. The labeled arrow represents data objects or object hierarchy.
RULES FOR DFD:
Identify and label each process internal to the system with Rounded circles.
Make sure the names of the processes accurately convey everything the
process is done.
Identify all data flows for each process step, except simple Record retrievals.
Data Flow Data flow are pipelines through the packets of information
flow.
The (0) level DFD describe the all user module who operate the system.
Below data flow diagram of online shopping site shows the two users can
0.0
Request for Login Request for Registration
DFD Level 0
1st Level Admin Side DFD
The Admin side DFD describes the functionality of Admin, Admin is the
owner of the website. Admin can first add category of item and then add
items by category wise, and admin can manage order and payment detail.
1st level User side Data flow Diagram
The user is all people who operate or visit our website. User is a customer
of a website. User can first select product for buy, user must have to
register in our system for purchase any item from our website. After
views. Simply stated the ER model is a conceptual data model that views
represent data objects. Since Chen wrote his paper the model has been
extended and today it is commonly used for database design for the
example, "employees in the company are each assigned their own office.
For each employee there exists a unique office and for each office there
there are zero, one, or many instances of entity B, but for one instance of
are zero, one, or many instances of entity B and for one instance of entity B
ER Notation
modeling methodology uses its own notation. The original notation used by
Chen is widely used in academics texts and journals but rarely seen in
number of notations used; among the more common are Bachman, crow's
are:
PERT charts are preferable to Gantt charts because they more clearly
interpret.
GANTT CHART
A Gantt chart is a type of bar chart, devised by Henry Gantt in the 1910s,
that illustrates a project schedule. Gantt charts illustrate the start and finish
Admin
Products
User
Modules Description
1. Admin
When admin login, he saw the customers database, means how many
users are authenticated to this website and how many users transact
every day, and newly items are inserted into products by admin. Admin
can manage others tasks like managing users, removing items, adding
orders etc.
2. Products
This module contains product names, related images and cost of the
customer wants from the shopping cart. Customers are provided with a
wide range of products from which he can choose as per his/her need.
3. User
User will have to register on the shopping portal. Once registered a cart
will be created for each user into which user can add his selected items
for checkout. Once the user is registered he has to login with his
username and password then he can see the items that are available on
the shopping portal. Once order is completed by user the products will
be delivered to him on the provided address. User can track his order
database. This data model contains all the needed logical and physical
reports and queries. The logic for each field, block and form were written
so that any who does not know the system will be able to code the logic.
Field validations and user friendly error message were written as a part of
tested.
Design Decisions
MYSQL has been chosen since the system has the following requirements
processing performance.
Controlled Availability
Database Design
1. Admin Table
COLUMN_NAME DATA_TYPE
id int
username varchar
password varchar
creationDate timestamp
updationDate varchar
2. Category Table
COLUMN_NAME DATA_TYPE
id int
categoryName varchar
categoryDescription longtext
creationDate timestamp
updationDate varchar
3. Orders Table
COLUMN_NAME DATA_TYPE
id int
userId int
productId varchar
quantity int
orderDate timestamp
paymentMethod varchar
orderStatus varchar
COLUMN_NAME DATA_TYPE
id int
orderId int
status varchar
remark mediumtext
postingDate timestamp
5. Products Review Table
COLUMN_NAME DATA_TYPE
id int
productId int
quality int
price int
value int
name varchar
summary varchar
review longtext
reviewDate timestamp
6. Products Table
COLUMN_NAME DATA_TYPE
id int
category int
subCategory int
productName varchar
productCompany varchar
productPrice int
productPriceBeforeDiscount int
productDescription longtext
productImage1 varchar
productImage2 varchar
productImage3 varchar
shippingCharge int
productAvailability varchar
postingDate timestamp
updationDate varchar
7. Subcategory Table
COLUMN_NAME DATA_TYPE
id int
categoryid int
subcategory varchar
creationDate timestamp
updationDate varchar
COLUMN_NAME DATA_TYPE
id int
userEmail varchar
userip binary
loginTime timestamp
logout varchar
status int
9. Wishlist Table
COLUMN_NAME DATA_TYPE
id int
userId int
productId int
postingDate timestamp
10. Users Table
COLUMN_NAME DATA_TYPE
id int
name varchar
email varchar
contactno bigint
password varchar
shippingAddress longtext
shippingState varchar
shippingCity varchar
shippingPincode int
billingAddress longtext
billingState varchar
billingCity varchar
billingPincode int
regDate timestamp
updationDate varchar
OVERVIEW OF TECHNOLOGIES USED
1. Front End Technology
PHP
web. Within an HTML page, you can embed PHP code that will be
executed each time the page is visited. Your PHP code is interpreted
at the web server and generates HTML or other output that the
for Personal Home Page and now stands for PHP Hypertext
Preprocessor
Unique Features
If you are familiar with other server side language like ASP.NET or
reasons:
1. Performance
2. Portability (Platform Independent)
3. Ease of Use
4. Open Source
5. Third-Party Application Support
6. Community Support
1. Performance
Scripts written in PHP executives faster than those written in other
ASP.NET and PERL. The PHP 5.0 engine was completely redesigned
response time.
2. Portability
PHP is available for UNIX, MICROSOFT WINDOWS, MAC OS, and
3. Ease of Use
its one of the reasons that PHP is favored as a rapid prototyping tool
4. Open Source
means that any developer, anywhere , can inspect the code tree, spit
One of PHPs Strengths has historically been its support for a wide
and Microsoft SQL Server. PHP 5.3 Supports more than fifteen
database access. XML support makes it easy to read and write XML
documents though they were native PHP data structures, access
XML node collections using Xpath, and transform XML into other
6.
PHP Server
1. WAMP Server
2. LAMP Server
3. MAMP Server
4. XAMPP Server
All these types of software automatic configure inside operating system
after installation it having PHP, MySQL, Apache and operating system base
MYSQL
available, some commercial and some free. Some of them are: Oracle,
the data. The records in a table (below) are not arranged in any
Data Definition Language (DDL): DDL consists of statements that define the
and extracting data from a database. These statements are used to add
records to, update records in, and delete records from, a database; perform
Data Control Language (DCL): DCL statements are sued to define access
levels and security privileges for a database. You would use these
passwords; view permissions; and create rule sets to protect access to data.
The Syntax of SQL is quite intuitive. Every SQL statement begins with an
action word, like DELETE, INSERT and ALTER etc. It ends with a
HOSTNAME: if you are working on local system, you can use localhost or
username is root.
needs to be connected.
Note: -There are more available parameters, but the ones listed above are
the most important.
Testing
anomaly for the software. Thus a series of testing are performed for the
proposed system before the system is ready for user acceptance testing.
undiscovered error.
Testing Objectives:
Testing is a process of executing a program with the intent of finding
an error
undiscovered error
Testing Principles
large
third party
The primary objective for test case design is to derive a set of tests that has
this objective two different categories of test case design techniques are
used.
They are:
White box testing focus on the program control structure. Test cases
are derived to ensure that all statements in the program have been
executed at least once during testing and that all logical conditions
errors in data structures, error in functional logic are the errors falling
in this category.
Testing strategies
A strategy for software testing must accommodate low-level tests that are
necessary to verify that all small source code segments have been correctly
Testing fundamentals
good test case is one that has high probability of finding an undiscovered
software. Testing cannot show the absence of defects, it can only show that
Information flow for testing flows the pattern. Two class of input provided
Test configuration includes test plan and test cases and test tools. Tests are
conducted and all the results are evaluated. That is test results are
compared with expected results. When erroneous data are uncovered, an
Unit Testing
Unit testing is essential for the verification of the code produced during the
coding phase and hence the goal is to test the internal logic of the modules.
Using the detailed design description as a guide, important paths are tested
to uncover errors with in the boundary of the modules. These tests were
carried out during the programming stage itself. All units were successfully
tested.
Integration testing
Integration testing focuses on unit tested modules and build the program
System testing
System testing tests the integration of each module in the system. It also
tests to find discrepancies between the system and its original objective,
or not will be tested here, and specified path ODBC connection will correct
or not, and giving output or not are tested here these verifications and
validations are done by giving input values to the system and by comparing
Acceptance Testing
This testing is done to verify the readiness of the system for the
Its purpose is to provide the end user with the confidence that the system
test case.
system performance.
Test cases are derived to ensure that all statements in the program have
been executed at least once during testing and that all logical conditions
Using White-Box testing methods, the software engineer can drive test
cases that
bounds.
The test case specification for system testing has to be submitted for