Sujan Doc For Online Grocery Shop
Sujan Doc For Online Grocery Shop
Sujan Doc For Online Grocery Shop
A PROJECT REPORT
Submitted to Department of
Computer Application
SUPERVISOR’S RECOMMENDATION
SUPERVISOR
i
Tribhuvan University Faculty of
Humanities and Social Sciences
Kathmandu Bernhardt College
LETTER OF APPROVAL
This is to certify that this project prepared by Sujan Dheke entitled “Online
Grocery shop” in partial fulfillment of the requirements for the degree of Bachelor
in Computer Application has been evaluated. In our opinion it is satisfactory in the
scope and quality as a project for the required degree.
………………………………………….. ……………………………………………..
Mr. Abhimanyu yadav Mr. Abhimanyu yadav
Supervisor Supervisor
………………………………………….. ………………………………..
Internal Examiner External Examiner
ii
ABSTRACT
The online grocery shopping platform provides a convenient and efficient way for users
to purchase groceries and household essentials through a digital interface. By integrating
robust features such as product search, category-based browsing, personalized
recommendations, secure payment options, and delivery scheduling, the platform
addresses the growing demand for seamless shopping experiences.
Additionally, the platform includes an admin panel for managing product listings,
tracking orders, and ensuring operational efficiency. Designed to cater to the dynamic
needs of modern consumers, this solution reduces the time and effort associated with
traditional grocery shopping, while also offering businesses a scalable and sustainable e-
commerce solution.
iii
ACKNOWLEDGEMENT
We are thankful to all those who directly and indirectly guided and helped us to make this
project successful. A special gratitude to our semester project supervisor Mr.
Abhimanyu yadav whose guidance and suggestion were important factors for
completing this project more efficiently.
Kind opinions, suggestions, feedback and appropriate guidelines from our teachers,
friends and parents helped us to sharpen our knowledge and try new things in our project.
Our special thanks are due to the staff and management team of Kathmandu Bernhardt
college for providing necessary resources and suitable environment to conduct the
project. In the end, we would like to appreciate everyone who were connected with us to
make this project possible by providing support, motivation and their valuable time.
iv
Table of Contents
ABSTRACT........................................................................................................................iii
ACKNOWLEDGEMENT...................................................................................................iv
CHAPTER 1: INTRODUCTION`.......................................................................................8
1.1 Introduction................................................................................................................8
1.3 Objectives..............................................................................................................8
System Design................................................................................................................12
v
4.1 Implementation.........................................................................................................20
4.2 Testing.................................................................................................................21
5.2 Conclusion................................................................................................................27
APPENDICES
REFERENCES
vi
Figure 1: Use Case Diagram of online grocery shop 7
Figure 2 ER Diagram of Online grocery shop 9
Figure 3:Level-0 DFD of Online grocery shop 10
Figure 4:Level-1 DFD of Online grocery shop 10
Figure 5: Architectural Design of online grocery shop 12
Figure 6: Database Schema Design of online grocery shop 13
Figure 7: Home page of online grocery page 14
Figure 8:Sign in page of online grocery page 14
Figure 9:register and signup page of online grocery shop 15
Figure 10: shop page of online grocery shop 15
Figure 11:Admin dashboard of online grocery shop 16
Figure 12:Context diagram of online grocery shop 17
Figure 13: 1st Level DFD of OGS 18
LIST OF FIGURES
CHAPTER 1: INTRODUCTION`
1.1 Introduction
A grocery shop, also known as a supermarket or grocery store, is a retail establishment
that offers a broad range of food and household products essential for daily living. These
stores are often divided into various sections, each dedicated to specific categories such as
fresh produce, dairy, meats, bakery items, packaged goods, beverages, and cleaning
supplies. Customers can find everything from fruits, vegetables, and freshly baked bread
to frozen meals, canned goods, and personal care products. In addition to food, many
grocery shops also carry household essentials like detergents, paper products, and
toiletries, making them a one-stop shop for most of a household's needs.
1.2Problem Statement
Customers may feel overwhelmed by the vast number of product options available in
grocery stores, leading to frustration and indecision, as they struggle to make quick
purchasing decisions.
• The absence of an efficient admin login system hampers the store’s ability to manage
inventory and customer orders, making it difficult to optimize stock levels, oversee
delivery or pickup bookings, and ensure a smooth shopping experience.
• Shoppers may spend excessive time searching for specific products or deals, which can
negatively impact their overall shopping satisfaction and reduce the convenience of the
grocery shopping process.
• Customers may overlook essential items or promotions they would benefit from, as
these products may be buried among numerous other options, resulting in missed
opportunities for better choices and deals.
1.3Objectives
Scopes: a) The system will provide an admin login feature that allows administrators to
manage product inventory, update listings, and monitor customer orders.
b) The online grocery shop will offer a user-friendly and intuitive interface, enabling
customers to easily browse, search, and purchase grocery items.
c) The platform will implement a personalized product recommendation system based on
customer purchase history and preferences, enhancing the shopping experience.
d) The system will offer real-time inventory updates to inform customers of product
availability and prevent ordering out-of-stock items.
e) An auto-suggestion feature will assist users in quickly finding grocery items as they
type in the search bar.
Limitations: I. New customers with no purchase history may receive less accurate
product recommendations initially until the system gathers enough data on their
preferences.
II. Handling large amounts of real-time inventory data and high traffic during peak
shopping hours could cause occasional slowdowns in system performance.
III. The recommendation engine may become computationally intensive for very large
datasets, impacting the speed of generating personalized suggestions.
1.6 Development Methodology
The Online Grocery Shop is constructed using the Waterfall methodology, the process is
more structured and linear. Unlike the Agile model, which allows flexibility and iterative
development, the Waterfall model requires that each phase be completed before moving
on to the next. The project begins with thorough planning and gathering of requirements,
followed by a detailed design phase, where every aspect of the platform is mapped out.
After the design is finalized, the development team moves on to implementing the
platform's features, such as building the user interface, integrating payment systems, and
setting up the backend for inventory management.
This chapter introduces the concept of the online grocery shop, outlining its significance
in today’s digital world. It discusses the reasons for the rise of online grocery shopping,
including convenience, time-saving, and the increasing reliance on e-commerce
platforms. The chapter also highlights the key problems the system aims to solve, such as
the inefficiency of traditional grocery shopping, challenges in inventory management, and
the need for better customer experience in online shopping. Additionally, it outlines the
objectives of the project, the scope, and limitations of the system, and provides an
overview of what each subsequent chapter will cover.
This chapter reviews the existing literature on e-commerce and online grocery platforms.
It explores various aspects such as online shopping trends, customer behavior, and
challenges faced by online grocery shops, such as delivery logistics, inventory
management, and customer retention. It also examines relevant studies, technology
frameworks, and platforms used in the development of similar systems. The review
highlights the gaps in current systems and how the proposed online grocery shop aims to
address these challenges through innovative solutions, such as better search functionality,
personalized recommendations, and optimized delivery options.
2
Chapter 3: System Analysis and Design
In this chapter, the focus is on analyzing and detailing the requirements for the online
grocery shop. It explains the core features that must be included, such as product catalog,
shopping cart, user account management, secure payment systems, and delivery tracking.
It also explores additional features that can enhance the user experience, like product
search, recommendations, and subscription-based delivery options. The chapter presents
the system design, detailing the architecture, database structure, and how various
components interact, including front-end and back-end elements. It also covers user
interface design, ensuring that it is simple, intuitive, and responsive across devices.
This chapter discusses the actual development of the online grocery shop. It includes a
detailed explanation of the tools and technologies used, such as programming languages
(e.g., JavaScript, Python), frameworks (e.g., React, Django), and databases (e.g., MySQL,
MongoDB). The chapter also explains the implementation of key features, such as
shopping cart management, product filtering, user authentication, and payment
integration. Furthermore, it covers the testing phase, including unit testing, integration
testing, and user acceptance testing (UAT). The results from these tests are summarized,
highlighting any challenges encountered during implementation and how they were
resolved.
The final chapter provides a summary of the findings from the development and
implementation of the online grocery shop. It evaluates the success of the system in
meeting the goals outlined in the introduction, such as improving shopping efficiency and
offering a smooth user experience. The chapter also highlights any limitations that were
encountered, such as scalability issues or challenges in managing large product catalogs.
Additionally, the chapter offers suggestions for future improvements and research, such
as integrating artificial intelligence for predictive inventory management, enhancing
customer personalization through data analysis, or exploring new delivery methods to
improve logistics.
3
4
CHAPTER 2: ACKGROUND STUDY AND
LITERATURE REVIEW
The study of existing online grocery shop systems reveals a variety of approaches
employed by leading platforms such as Amazon Fresh, Walmart Grocery, Instacart, and
Tesco. Each platform uses different strategies to optimize the shopping experience for
users. Amazon Fresh employs a combination of user data analytics and machine learning
algorithms to recommend products based on previous shopping behavior, dietary
preferences, and search history. Walmart Grocery focuses on enhancing user convenience
by offering a highly organized product catalog, personalized discounts, and integrating
local store inventory data to offer relevant recommendations. Instacart uses collaborative
filtering techniques to suggest products based on similarities in users' shopping patterns,
as well as personalized grocery lists tailored to individual tastes and preferences. Tesco's
online platform uses both machine learning and AI-powered recommendation engines,
considering factors like past purchases, seasonal trends, and real-time promotions to
optimize the shopping experience.
By examining these platforms, researchers can assess the strengths and weaknesses of
various recommendation and delivery systems. For example, while Amazon Fresh excels
in personalized product suggestions through detailed user behavior analysis, platforms
like Instacart and Walmart focus more on streamlining the shopping and delivery process.
Understanding these approaches helps inform the design and implementation of effective
strategies for building a comprehensive and user-friendly online grocery system,
enhancing customer satisfaction and operational efficiency.
To construct an efficient online grocery shop, it is essential to review various systems and
technologies that optimize user experience, inventory management, and logistics. One
crucial area of focus is recommendation algorithms, which help provide personalized
product suggestions based on user behavior and preferences. Collaborative filtering is a
popular technique used in online grocery systems to recommend products by analyzing
past user interactions and purchase history. In a study by Adomavicius and Tuzhilin
5
(2005), they discuss the role of collaborative filtering in personalizing product
recommendations, where users who show similar purchasing patterns are more likely to
receive the same product suggestions [1].
Moreover, the use of machine learning models in online grocery platforms has gained
traction in recent years. For instance, recommender systems using clustering algorithms
or deep learning models, as discussed by Shankar et al. (2020), are applied to group
similar products or predict future buying behaviors, further refining the personalization of
shopping experiences [4]. These advanced technologies allow grocery platforms to adapt
and evolve based on customer preferences, leading to higher user engagement and
satisfaction.
6
CHAPTER 3: SYSTEM DESIGN AND
ANALYSIS
A functional requirement defines the specific functions of the system. The system
supports both admin and user roles. The functions required during the construction of the
online grocery shop application are as follows:
I. Admin Interface
7
Non-Functional Requirement
i. Performance Requirements
Speed is a key requirement to many systems. The focus is the website’s load time
should not be more than one second for users. The database shall be able to
accommodate the numerous records.
8
ii. Safety Requirements
The database might crash at any certain time due to virus or external disturbance.
iii. Reliability
The website should offer high degree of reliability. Stable network connection should
be available all the time.
a) Technical Feasibility
For technical feasibility we made sure that the proposed system can be developed
using easily available tools and can be handled in a home environment. Each of
the equipment that we ought to use were affordable and are mostly free of cost.
Hence, we concluded that the system was technically feasible. Operational
Feasibility
For the operational feasibility we focused on the degree to which the proposed
development projects fits in with the existing environment. In this system, all the
features were implemented using its own database. Furthermore, this system were
compatible on all devices. Hence, this system was operationally feasible.
b) Economic Feasibility
The purpose of economic feasibility was to have an analysis of economic benefit
to the organization. Users only need internet facility to access the website. So, the
proposed project was economical and can serve user’s required purpose.
c) Schedule Feasibility
For the schedule feasibility we calculated the time that would be taken to develop
the software. We made sure that the system would be completed within six
months. The project’s tasks and milestones has been divided as shown in the
given figure below:
9
3.2.1 Data Modeling (ER Diagram)
10
In this DFD there are three main external entities:
● Customer
● Admin
This level breaks the single process into multiple sub processes. The subprocess for
online grocery shop are as follows:
11
Figure 4: Level-1 DFD of OGS
12
System Design
13
3.2.4 Database Schema Design
14
3.2.5 Interface Design (UI/UX)
15
Figure 9: register and sign up page of online grocery shop
16
Figure 11: Admin Dashboard of online grocery shop
It shows how the system is divided into subsystems, each of which deals with one or
more of the data flows to or from an external agent and which together provide all
of the functionality of the system as a whole. DFD level 1 provides a more detailed
breakout of pieces of the zero level DFD where we will highlight the main
functionality of Online
17
Grocery shop
18
3.3 Algorithm Details
Content-Based Filtering Algorithm
A. Data Collection
19
determined by the importance of each feature (e.g., user purchases vs.
views).
C. Similarity Calculation
Where:
Compute Similarity:
o For each product a user has interacted with (viewed, added to cart, or
purchased), compute the similarity with other products in the catalog.
Products with higher similarity scores are more likely to be recommended.
20
CHAPTER 4: IMPLEMENTATION AND TESTING
4.1 Implementation
System implementation is the most crucial phase in any project. During this phase,
designed documents were used to produce code to make the system functional. Efforts
have been made to ensure that the system is simple and user-friendly. For this project,
HTML, CSS, PHP, and MySQL were used to develop the online grocery store.
The Online Grocery Store is a web-based application designed and developed using the
following technologies:
Technologies in Detail:
21
o Used for storing product details, user accounts, orders, and inventory.
The system comprises two main functional modules: Admin Module and User Module.
Admin Module
The Admin Module handles administrative tasks and includes the following
functionalities:
1. Product Management:
o Add, edit, delete, and view product information, including name, price,
category and images.
2. Order Management:
o View all user orders and update their statuses (e.g., pending, shipped,
delivered).
3. User Management:
o Manage user accounts by viewing or updating user details and activity.
User Module
22
4.2 Testing
Testing of the online grocery shop system was conducted to ensure it met the project
requirements and functioned as intended. The purpose of testing was to identify errors
and ensure all modules performed as expected. The tests conducted are detailed below:
In unit testing, individual modules were tested to verify their functionality. Below are the
test cases used for unit testing:
23
Empty Search Query Search Term: "" Display of all available
products.
Valid Product Addition Product ID: 101, Quantity: Product added to the cart
2 successfully.
Exceeding Stock Quantity Product ID: 102, Quantity: Failure message: "Not
1000 enough stock available."
24
4.2.2 Test Cases for System Testing
In system testing, we check if the system works seamlessly after combining all the
modules. Various verifications ensure the system meets specifications and objectives.
When the final model was tested, the output met the expected requirements.
User Login Verify users can log 1. Go to the login User is redirected to
in to their account. page. the home page with
2. Enter valid a personalized
credentials. greeting or
3. Click the dashboard.
"Login" button.
Add Item to Cart users can add items 1. Select an item The item is added to
to their shopping from the product the cart, and a
cart. list. confirmation
25
2. Click "Add to message is
Cart." displayed.
3. Verify if the item
is added.
View cart Ensure users can 1. Navigate to the A list of all added
view items added to cart page. items with their
their cart. 2. Verify the list of quantities, prices,
items added. and total cost is
displayed.
View Products Ensure admins can 1. Log in to the A list of all products is
(Admin) view the list of admin dashboard. displayed with options
grocery items. 2. Navigate to the to edit or delete.
"Manage Products"
26
section.
Edit Product Verify admins can 1. Select a product. Changes are saved,
edit product 2. Click "Edit" and and the product list is
details. modify fields (e.g., updated with the new
price, stock). details.
3. Save changes.
Handle Payments Verify admins can 1. Navigate to the Payment records are
view payment "Payments" displayed with details
statuses. section. (order ID, amount,
2. Check payment status, payment
records linked to method, etc.).
orders.
27
CHAPTER 5: CONCLUSION AND FUTURE
RECOMMENDATION
5.2 Conclusion
To conclude, this project is very flexible and user-friendly. Most of the requirements have
been fulfilled up to the mark and the requirements which have been remaining, can be
completed with a short extension. This project is developed using MySQL, php1,
HTML,& CSS. The website was tested thus providing maximum load to the server and
was found working fast and effective.
We have designed the online grocery shopping platform to be adaptable for future
enhancements and evolving requirements. The development process followed standard
software development methodologies to ensure scalability and maintainability. Some of
the future recommendations include:
28
Improved Delivery Systems: Features like drone or autonomous vehicle
deliveries can be integrated to improve efficiency and expand delivery coverage.
29
APPENDICES
Frontend overview
Home page
Product page
30
Register page
31
Admin Login page
Admin Dashboard
32
33
REFERENCES
[1] Mero Kirana. (n.d.). Online grocery shopping in Nepal - Groceries, baby & more. Retrieved
from [https://merokirana.com](https://merokirana.com).
[4] Rasan Mart. (n.d.). Online store for groceries and essentials in Nepal. Retrieved from
[https://www.rasanmart.com](https://www.rasanmart.com).
[5] Walmart. (n.d.). Walmart Grocery Delivery & Pickup. Retrieved from
https://www.walmart.com/grocery.