Project Report 7th Sem
Project Report 7th Sem
PROJECT REPORT
ON
APPENDICES
35
36
RESEARCH PAPER & CERTIFICATE
37
ABBREVIATIONS
38 - 48
6
GAYA COLLEGE OF ENGINEERING ,GAYA (B.R.)
Department of Computer Science & Engineering
CERTIFICATE
This is certified that the project titled “E-COMMERCE WEBSITE USING MERN STACK” is the
bonafide work carried out by 1. “VIKASH KUMAR” Registration No.21105110012, 2. “RICHA
RANI” Registration No.21105110014, 3. “SURAJ KUMAR Registration No.21105110009
4.”Saurav Kumar ” Registration No 21105110018 a student of Bachelor ofTechnology(Computer
Science & Engineering GAYA COLLEGE OF ENGINEERING, GAYA during the academic year
2021 – 2025, This technical project is hereby approved for submission towards partial
fulfilment of the completion for 7th semester degree of Bachelor of Engineering in Computer
Science & Engineering.
STUDENT DECLARATION
8
GAYA COLLEGE OF ENGINEERING ,GAYA -823003
GCE GAYA
Department of Computer Science & Engineering
ACKNOWNLEDGEMENT
We express our deepest gratitude to our Principal Dr. Rajan Sarkar for
providing us with an environment to complete our project successfully.
We are deeply indebted to our Head of Department Prof. Ritesh Kumar, who
modelled us both technically and morally for achieving greater success in
life. He showed us different ways to approach a research problem and the
need to be persistent to accomplish any goal. We thank him heartily.
We are very grateful to our Project guide Prof. Garima & Project for being
Coordinator Prof. Ritesh Kumar instrumental in the completion of our
project with his complete guidance.
We also thank all the staff members of our college and technicians for their help
in making this project a successful one.
The web development industry has grown significantly with the evolution of technology.
Software technology is improving at the same rate as hardware. Increasingly, electronic
devices with the Internet and real-time capabilities have made performance essential.
Unfortunately, despite their general use and long history of developing and maintaining
traditional technology,some fail to meet today's customer performance expectations.The
MERN stack was recently built to overcome this performance issue.
E-commerce has exponentially risen over the last decade, offering more benefits and
conveniences than traditional businesses. Furthermore, the COVID-19 era has
irreversibly changed how businesses interact with customers, allowing merchants to
approach clients more promptly. By recognizing this need, an E-commerce web
application is created as an online bookshop.
This project will demonstrate and comprehend each MERN stack technology's essential
concept before building a functional E-commerce web application to help small
companies formulate their business strategy. The functionality and browser capabilities
tests were all conducted on various platforms. The outcome was satisfactory since the
web application fulfilled all of the objectives.
Finally, an
operational and production-ready web store application was successfully constructed
and deployed. Additionally, the application's results and potential enhancements were
discussed. The thesis can be utilized as a reference on the MERN stack, aimed at novices
and anyone enthusiastic about exploring the technology stack.
The objectives of this thesis were to illustrate and understand the fundamental concepts
and usage of each technology in the MERN stack, as well as their compatibilities and
advantages as a complete stack in web application development. The thesis achieved that
goal by utilizing these modern technologies and implementing a web application. The idea
of this web application was for a startup run by the author’s parents as they decided to
open a book retail store. By researching, the author realized how e-commerce – an
enormous platform is emerging at an extraordinary speed over the last decades all over
the world and providing more advantages and conveniences as compared to physical
stores. E-commerce has changed permanently the way businesses and consumers
interact, which allows users to connect with their favourite shops and brands whenever
and wherever they want and also helps stores to more actively approach consumers. It is
believed that the growth of e-commerce for the next incoming years is increasing beyond
measure rate with the release of modern technologies. Understanding this need, the
author’s solution was to create an e-commerce web application as an online bookstore in
order for the startup to develop its business strategy.
This document structure was organized as follows. The first section brought in the goal
of the thesis and the technologies used. Next, essential concepts and theoretical
background of each technology in the stack were introduced along with the example,
followed by the third section which demonstrated carefully and thoroughly the
application development process, from back-end to front-end. In the end, this paper
provided a discussion of the project with further improvements and gave a conclusion
about the final product.
1.3 THEORETICALBACKGROUND:-
The e-commerce application is constructed based on the MERN stack as the primary full-
stack technology. This chapter will briefly discuss each technology in the MERN stack as
well as its third-party support library Mongoose to develop the project
As illustrated, the MERN stack is constructed based on the well-known 3-tier architecture,
which confirms that the MERN stack is full-stack application development. The MERN stack
consists of three components: display layer powered by React, application layer with NodeJS
and Express, and database tier provided by MongoDB.
1.3.1.1 THE MERN STACK :-
MongoDB is a cross-platform, open-source, NoSQL database that is mainly used for scalable
large-volume data applications and tasks that do not function well in a relational database. It
utilizes a document storage format known as BSON (Binary encoded JavaScript Object
Notation). It is a non-relational database management system created by Dwight Merriman,
Eliot Horowitz, and Kevin Ryan and became popular in the mid-2000s. MongoDB’s design is
based on collections and documents, as illustrated in Figure 2 below, which replace the usage
of tables and rows in conventional relational databases.
• Indexing: Each field in MongoDB documents is indexed using primary and secondary
indices, making retrieving and searching for data more straightforward and faster.
Without accurate indices, the database must manually search each document for the
matching query, which is time-consuming and inefficient.
• Scalability: The horizontal scalability from MongoDB was offered through sharding,
which refers to the process of distributing data across numerous servers. By utilizing the
shard key, a significant quantity of data is divided into data chunks, and these data
chunks are equally spread among shards that involve multiple physical servers.
Moreover, it will add new machines to an existing database.
• Replication: With the benefit of replication, MongoDB enables high availability and
redundancy by producing several copies of data and storing them on a separate server to
protect the database against hardware failure, ensuring that the data can be recovered
from another if one server fails.
1.3.1.2 EXPRESS:-
Representing the letter “E” in the MERN stack, Express is a lightweight and versatile web
application framework built on top of NodeJS. Thanks to the large community of support,
it includes a rich collection of functionality for developing web and mobile applications.
Even though a large number of support packages along with the functionality for better
software creation, Express does not affect the performance of NodeJS.
Express.js is a routing and middleware framework for managing the many routing
options for a website. It operates between the request and response cycles. Middleware is
invoked after the server receives the request and before the controller actions transmit
the response. One or more pieces of middleware are executed to perform particular
tasks, such as authorizing requests or parsing request content. Express applications are
composed of a sequence of middleware function calls. Typically, the first middleware
executed to process the request initiates the task pipeline. The initial middleware can
either complete the request and provide it to the users or call the subsequent middleware
to continue the request. The same approach will be continued until the pipeline's last
middleware takes the result of the preceding middleware as input.
1.3.1.3 REACT:-
React, representing the letter ‘R’ in the MERN stack, focuses on creating the View Layer,
which is well-known for all visible parts of the page of an application. React is a multi-
purposed, open-source JavaScript library used for building user interfaces based on UI
components.
Since React was established to cope with sophisticated, large-scale user interfaces
combined with real-time dynamic data and data binding, it has been steadily improving
its single-page application development and frontend utilities for programmers of all
levels.
Compared to other popular libraries and frameworks such as jQuery, Angular, and
VueJS, React is considered the most popular framework for web development. Along with
offering reusable component code, which reduces development time and the likelihood of
bugs and errors, Reacts introduced many essential characteristics that contribute to its
developer appeal, which are discussed below.
JSX:-
JSX (JavaScript XML) is a syntactic extension to JavaScript that is similar to HTML.
Because JSX optimizes the translation to standard JavaScript and leverages its full
power, it is much faster than the regular one. Even though React does not need the usage
of JSX to construct React-based applications, it is suggested as it simplifies the
development for developers whenever markup components and binding events are
required. Rather than dividing markup and logic into different files, JSX enables
developers to generate cleaner and more manageable codebases for their websites by
combining rendering logic and user interface logic in the same components.
While regular DOM manipulation is slow due to the re-rendering of both the updated
element and its children after getting new data, the Virtual DOM rerenders only the
components that need updating, which fastens the rendering process and increases the
performance. In order to further understand why Virtual DOM is fast and practical, the
functionality of Virtual DOM must be discussed. The state of the DOM tree hierarchy is
stored when Virtual DOM is utilized to render a page. Instead of constructing a new tree,
a diffing approach is employed when UI modifications are necessary. At that point, the
React library employs the Virtual DOM, which allows it to do the calculations inside this
domain without involving the actual DOM. Therefore, whenever a component's state
changes, React keeps track of it and updates
The Virtual DOM tree by comparing the current version to the prior one. This comparison
employs a diffing algorithm to reduce the number of DOM operations/refreshes, leading
to considerable boosting speed. The whole procedure is titled Reconciliation.
COMPONENTS:-
Components are the primary concept of React, which encourages developers to separate
complicated user interfaces into reusable and independent parts. React components are
classified into two types: class-based components and functional components. The
functional component is considered the most straightforward method to construct as it
can be implemented as a JavaScript function to return JSX. The class-based component
is constructed using the ECMAScript6 class syntax combined with the built-in React
library class “Component”.
Components can refer to one another, which means one component can be a parent
component containing several child components with no restriction on the amount of
complexity. Moreover, both functional and class-based components adhere to one strict
rule assigned by React: all React components must be pure functions in which their props
are immutable. Props, which stands for Properties, are a collection of inputs passed as
parameters to a component, while pure function depicts the state in which the function
performs the logic without affecting the arguments. As a result, a React component
behaves like a pure function while respecting its inputs and rendering the same result for
the same props.
HOOKS:-
Prior to version 16.8, the majority of React components were class-based as class-based
components offer life-cycle methods for component state management. Since version
16.8, however, React has introduced a new notion called Hooks, which provides a new
method to leverage state and other React capabilities inside a functional component. By
using Hooks, a component's stateful logic can be isolated, tested separately, and reused
without affecting the component hierarchy. In addition, Hooks enables the developer to
break down a component into separate functions based on the relationship instead of
life-cycle methods.
There are two built-in React hooks that should be discussed. First, the State hook,
commonly known as the use State hook, enables component-level state management. It
hooks into
NPM was first published on January 12, 2010, by Isaac Z. Schlueter. It is installed
alongside NodeJS and is utilized to install the required packages and modules in the
NodeJS project. It is currently the world's largest software registry, with approximately
two million packages at the end of March 2022.
MONGOOSE :-
Mongoose is an object document mapping (ODM) library that is utilized for facilitating Node
As shown in Figure 6, Mongoose is utilized to create the interaction between Node and
MongoDB through object mapping. After that, Mongoose forms the connection with
MongoDB using a Mongo Driver. Therefore, the relationship between Mongoose, NodeJS,
and MongoDB ensures data capabilities.
The first step in getting started with Mongoose, like with other ODM libraries, is to create
a schema. As Mongoose's documentation page described, a schema specifies the data
structure and property casting, along with the following techniques: instance methods,
compound indexes, static Model methods, and middlewares. Once the first stage is
finished, the developed schemas will be utilized to map to MongoDB collections and
shape the data documents included inside each collection. The second stage required by
programmers is to construct a Mongoose model. Models are composed of builders of
schemas, with the primary responsibility of producing and scanning documents in the
Mongo database. Querying, deleting, and updating documents in the database are
additional capabilities of models worth mentioning.
Any system with above or higher configuration is compatible for this project.
Scalability is a key advantage of using the MERN stack for e-commerce website
development. The modular architecture allows easy scaling of the application, while the
use of MongoDB as a NoSQL database enables flexible data modelling for complex and
dynamic data structures. Another advantage is the stack's performance, which is boosted
by its ability to handle both client-side and server-side components. Furthermore, React
allows for the efficient rendering of components, thus reducing load times.
Developing an e-commerce website using the MERN stack involves creating an API with
Express.js for server-side communication. MongoDB stores and retrieves data while
React builds dynamic and responsive user interfaces. Node.js is used for server-side
scripting to enable real-time communication between client-side and server-side
components.
Security is a critical aspect of e-commerce website development, and the MERN stack
provides several features to ensure the security of the application. MongoDB provides
authentication and access control, and SSL/TLS encryption for secure communication.
Express.js handles authentication and authorization and can be used to prevent common
security vulnerabilities. React and Node.js support SSL/TLS encryption and XSS
protection.
Several successful e-commerce websites have been built using the MERN stack, such as
Grofers in India and Ubuy in the Middle East.
Best practices for e-commerce website development using the MERN stack include
optimizing performance, testing thoroughly for reliability and security, deploying to a
reliable and scalable infrastructure, and maintaining the application through regular
updates and bug fixes. Additionally, it is important to adhere to industry standards and
regulations such as PCI DSS compliance for payment processing.
One of the potential drawbacks of using the MERN stack for e-commerce website
development is its learning curve. The technology stack requires expertise in multiple
technologies, which can be challenging for novice developers. Additionally, the
modularity of the MERN stack can result in a large number of dependencies, which can
increase the complexity of the application and make maintenance more difficult. Finally,
the MERN stack may not be the most appropriate choice for all e-commerce websites,
particularly those with simpler requirements.
The future of e-commerce website development using the MERN stack will see the
24
GAYA COLLEGE OF ENGINEERING ,GAYA -823003
13
integration of emerging technologies like machine learning, blockchain, and augmented
reality. Machine learning can provide personalized product recommendations, blockchain
can facilitate secure payment processing, and augmented reality can provide a more
immersive shopping experience.
MERN stack offers a flexible and powerful solution for e-commerce website development,
with advantages in scalability and performance. Its security features and successful case
studies make it a reliable and popular choice for e-commerce developers. Best practices
and future developments provide guidance and opportunities for continued innovation
This system is not much user-friendly as one needs to go to the market physically and then
select items only from the available list. So mostly it is difficult to get the product as per our
desire. Description About the products is less available and are mostly verbal only. For this
type of shopping, one needs to have an ample amount of free time.
Also, not really good markets exist everywhere, so many times good markets become out of
reach for certain people. In the proposed system customers need not go to the shops for
purchasing the products. He/she can order the product he/she wishes to buy through the use
of this system. The shop owner can be the admin of the system.
The shop owner can appoint officials particularly to handle this, who will help the owner in
managing the customers and product orders. The system also endorses a home delivery
system for delivering the purchased products.
The current system for shopping is to visit the shop manually and from the available product
choose the item customer wants and buy the item by payment of the price of the item.
● Itislessuser-friendly.
● Usermustgototheshopandselectproducts.
● Itisdifficulttoidentifytherequiredproduct.
● Descriptionoftheproductlimited.
● Itisatime-consumingprocess.
● Notinreachofdistantusers.
The client-side component will be developed using React, which will enable the creation of
dynamic and responsive user interfaces. React will also provide an efficient rendering of
components, resulting in reduced load times and enhanced user experience. Additionally, the
proposed system will be developed using a modular approach, allowing for easy scaling of
the application.
The proposed system will have a range of features to provide a seamless e-commerce
experience for users. These features will include
● ProductCatalog:Theproductcataloguewillallowuserstobrowsethroughawide
range of products and filter them based on their preferences.
● ShoppingCart:Theshoppingcartwillenableuserstoaddproductstotheircart,review
their orders, and checkout.
● PaymentGatewayIntegration:Thepaymentgatewayintegrationwillallowusersto
make secure payments using a variety of payment methods, such as credit cards, debit
cards, and digital wallets.
● OrderManagement:Theordermanagementsystemwillenablebusinessestomanage
orders, track shipments, and generate invoices.
● User Management: The user management system will enable businesses to manage
user accounts, including registration, login, and authentication.
● Search Engine Optimization: The proposed system will be optimized for search
engines to improve the visibility of the e-commerce website and increase traffic.
The proposed system will incorporate several security features to ensure the safety and
security of user data and transactions. These features will include
● SSL/TLS Encryption: The system will use SSL/TLS encryption to secure all
26
GAYA COLLEGE OF ENGINEERING ,GAYA -823003
15
communication between the client-side and server-side components.
● AccessControl:Accesscontrolwillbeimplementedusingrole-basedauthenticationto
ensure that only authorized users have access to sensitive data.
● PCI DSS Compliance: The system will be compliant with the Payment Card Industry
Data Security Standard (PCI DSS) to ensure the secure processing of credit card
payments.
● RegularSecurityAudits:Theproposedsystemwillundergoregularsecurityauditsto
identify and address any vulnerabilities or security issues.
The proposed system for e-commerce websites using the MERN stack will provide
businesses with a powerful and flexible platform for selling products online. The system will
be developed using the latest technologies and security features to ensure a seamless and
secure e-commerce experience for users. The modular architecture of the MERN stack will
enable easy scaling of the application, allowing businesses to expand their e-commerce
operations as they grow.
Economic Feasibility:
The economic feasibility of the proposed system is determined by assessing the cost of
development, deployment, and maintenance of the e-commerce website. The MERN stack
is an open-source technology, and the initial cost of development is relatively low.
However, ongoing maintenance and updates will require a dedicated team, which may
result in recurring expenses. The project's profitability will depend on the volume of sales
generated, and the e-commerce website's scalability and flexibility will enable businesses
to expand their operations and generate more significant profits.
Technical Feasibility:
The operational feasibility of the proposed system is evaluated based on the availability
of resources, skills, and expertise required for development, deployment, and
maintenance. The development team must possess the necessary skills and expertise in
the MERN stack to ensure the successful development and deployment of the e-
commerce website. Additionally, the team must have experience in managing e-
commerce websites, including order management, user management, and inventory
management.
Legal Feasibility:
The legal feasibility of the proposed system is evaluated by assessing compliance with
data protection laws, intellectual property laws, and other relevant regulations. The e-
commerce website must comply with the General Data Protection Regulation (GDPR) and
other data protection laws to ensure the security and confidentiality of user data.
Additionally, the website must comply with intellectual property laws, such as trademark
and copyright laws, to avoid legal disputes.
The feasibility study demonstrates that developing an e-commerce website using the
MERN stack is technically and operationally feasible. However, the project's profitability
will depend on the volume of sales generated, and businesses must be prepared for
recurring expenses associated with maintenance and updates. The legal feasibility of the
project will depend on compliance with data protection and intellectual property laws,
and businesses must ensure compliance to avoid legal disputes. Overall, the proposed
system for an e-commerce website using the MERN stack is a viable and practical
solution for businesses looking to sell products online.
The e-commerce website must be developed using the MERN stack, which includes
MongoDB, Express.js, React, and Node.js. The website should be responsive, intuitive, and
easy to navigate. It should be designed with a clean and modern interface, consistent with the
branding and image of the business. The website must support multiple languages and
currencies to facilitate global sales.
Functional Requirements:
The e-commerce website must have the following features and functionalities:
● UserAccountManagement:Thewebsiteshouldallowuserstocreateandmanagetheir
accounts, including personal information, shipping addresses, and payment options.
● ProductCatalog:Thewebsiteshouldprovideacomprehensivecatalogueofproducts,
including product descriptions, images, prices, and reviews. Users should be able to
search and filter products based on different criteria, such as price, category, and brand.
● ShoppingCart:Thewebsiteshouldallowuserstoaddproductstotheirshoppingcart,
view the contents of their cart, and proceed to checkout.
● PaymentGatewayIntegration:Thewebsiteshouldintegratewithasecureandreliable
payment gateway to facilitate secure online transactions.
● OrderManagement:Thewebsiteshouldallowbusinessestomanageorders,including
order tracking, order processing, and order fulfillment.
● CustomerService:Thewebsiteshouldprovidecustomerserviceoptions,suchaslive
chat, email support, and FAQ section.
Security Requirements:
● Thee-commercewebsitemusthavethefollowingsecurityfeatures:
● SSL Encryption: The website should use SSL encryption to secure user data and
prevent unauthorized access.
30
GAYA COLLEGE OF ENGINEERING ,GAYA -823003
19
● User Authentication: The website should require users to create and use strong
passwords to protect their accounts.
● PaymentSecurity:Thewebsiteshoulduseasecurepaymentgatewaytoensuresecure
and safe online transactions.
Performance Requirements:
● Fast Load Time: The website should load quickly to provide a seamless user
experience.
● Scalability:Thewebsiteshouldbescalabletoaccommodategrowingusertrafficand
transactions.
● Reliability:Thewebsiteshouldbereliableandavailable24/7tofacilitatesalesand
transactions.
The project specification for an e-commerce website using the MERN stack provides a
detailed overview of the proposed system's requirements, functionalities, and features. The
specification highlights the importance of a responsive design, intuitive user interface, secure
payment gateway, and fast load time to provide a seamless and satisfactory user experience.
By following this specification, businesses can develop a robust e-commerce website using
the MERN stack and expand their operations to reach a global audience.
BLOCK DIAGRAM:
HOME PAGE:-
The home page of an e-commerce site is the main landing page that customers first see
when they visit the website. It serves as the storefront or the main entrance to the online
store. The home page provides a snapshot of the website's products, services, and overall
brand identity. The home page typically includes several key elements, including a
Navigation menu, Featured products, Promotional banners, Search bar, and About Us
section.
SIGNUP PAGE:-
A signup page is a webpage that allows users to create an account with a website or
online service. It is typically the first step in the onboarding process for new users. The
signup page collects important information from the user, such as their name, email
address, and password, and may also ask for additional details such as their date of birth
or location. Here are some common elements you might find on a signup page:
Registration form, Fillup forms (Name, Password requirements, Mobile number, Address,
etc), Terms and conditions, Social login options.
Overall, the signup page is an important part of the user onboarding process, and it's
essential that it's designed to be user-friendly, easy to navigate, and secure. A well-
designed signup
40
GAYA COLLEGE OF ENGINEERING ,GAYA -823003 29
page can help to build trust with users and encourage them to continue using the website.
SIGN-IN OPTION:-
The sign-in option on a website or application allows users who have already created an
account to log back into their account. This allows users to access their personal
information, settings, and account features. Typically, the sign-in option is located on
the website or application's homepage and can be accessed by clicking on a "sign in" or
"log in" button. Once clicked, the user is directed to a sign-in page, where they are
prompted to enter their username or email address and password.
CART PAGE:-
The cart page (also known as a shopping cart or basket) is a webpage on our e-commerce
site that displays a customer's current order. The cart page typically shows a list of the
products the customer has added to their cart, along with the quantities and prices.
Customers can typically edit the quantities of each item or remove items from their cart
altogether. The cart page may also display the subtotal, taxes, shipping costs, and total
order costs. From the cart page, customers can proceed to checkout to complete their
orders or continue shopping to add more items to their cart. A well-designed cart page is
important for providing customers with a clear overview of their order, and for
encouraging them to complete their purchase.
ASP : ActiveServerPages
JSON : JavaScriptObjectNotation
BSON: BinaryJavaScriptObjectNotation
PHP : HypertextPreprocessor
MERN: MongoDB,Express,React.js,Node.js
JSX : JavaScriptSyntaxExtension
HTTP : HypertextTransferProtocol
HTML: HypertextMarkupLanguage
:
CSS CascadingStyleSheets
:
REST RepresentationalStateTransfer
:
API Applicationprogramminginterface
URL : UniformResourceLocator
NPM : NodePackageManager
NoSQL: Non-StructuredQueryLanguage
:MVC ModelViewController
:UI UserInterface
:ODM ObjectDataModelingDOMDocumentObjectModel
JWT : JSONWebToken
B2C : BusinesstoCustomer
48
GAYA COLLEGE OF ENGINEERING ,GAYA -823003
38
E-Commerce Website Using MERN Stack
Vikash Kumar, Richa Rani, Suraj Kumar,Saurav Kumar Prof.Ritesh Kumar
I.I NTRODUCTION
E-commerce, or simply electronic commerce, is the term used to describe the buying and selling of
products and services via the Internet. E-commerce is a massive industry that has grown
dramatically in recent years, providing more benefits and conveniences than offline businesses. The
fashion of interaction between businesses and customers has also changed drastically because of
the internet boom and rapid innovations and development of the logistics industry, and E-commerce
has even made it possible for small businesses to commerce with customers globally. Recognizing
this need, we made the decision to create an E- commerce web application as our project. This project
is implemented using the MERN Stack. MERN Stack is an open-source JavaScript-based stack that is
used for building dynamic web applications more quickly and easily. It is a combination of modern
technologies for building high-end online apps. MERN Stack is a package of MongoDB, Express,
React, and Node.
II.L ITERATURESURVEY
E-commerce is the buying and selling of products, raw materials, and services via the Internet. It is a
rapidly growing industry expected to continue expanding in the coming years. To create an e-commerce
website, various technologies can be used. The MERN stack is one such technology that we put to use.
This research explores the use of the MERN stack in developing e-commerce websites.
The MERN stack is a package of four technologies: MongoDB, Express, React, and Node.js. MongoDB
is a NoSQL database that allows for scalable and flexible data storage. Express is a framework for
Node.js that facilitates the development of web-based applications. React is a JavaScript library that
makes it possible to create interactive user interfaces. Node.js is a JavaScript runtime environment that
enables server-side programming.
MERN stack provides various advantages for building e-commerce websites such as the potential to build
dynamic single-page applications utilizing React, the scalability and adaptability of MongoDB for storing
massive amounts of data, and the server-side programming ability of Node.js. However, there are some
potential drawbacks to employing the MERN stack such as the complicated learning curve for developers
GAYA COLLEGE OF ENGINEERING ,GAYA -823003 49 39
unfamiliar with JavaScript, possible inconsistencies in data management with NoSQL databases such
as MongoDB, and limited scalability of Node.js.,
Nevertheless, the MERN stack is widely regarded as a useful technology for building e-commerce
websites.
The use of React allows for the development of dynamic and responsive user interfaces, while
MongoDB
provides scalability and flexibility for storing significant amounts of data. Despite some limitations,
the
benefits of the MERN stack make it a suitable option for developing e-commerce websites.
II.E- COMMERCE
E-commerce, also known as E-comm, EC for short, is a concept concerning transactions, buying and
selling of goods and services via the internet. E-commerce first surfaced in the 1960s. E-commerce
gained popularity after the introduction of devices like laptops and mobile phones, and social media
progressively ensured the strength and expansion of web-based apps. Launchers encourage the quick
growth of commerce (especially online commerce). The internet is what drives e-commerce. Customers
use their own devices to access a website or mobile app to browse the products and place orders for
products or services.
Types of E-commerce:
1) B2B (Business to Business):Business-to-business electronic commerce, or B2B, refers to the online
buying and selling of goods and services between corporations. B2B commerce is different from B2C
commerce, which is business-to-consumer online sales of products or services to consumers.
2) B2C (Business to Consumer): Business-to-consumer (B2C) e-commerce also known as retail
e-commerce, refers to the business model that involves the act of selling products and services directly to
the consumers. Most of the enterprises that conduct business directly with consumers are referred to as B2C
companies.
3) C2C (Consumer-to-Consumer): This is a reference to an interpersonal commercial transaction. Without
any use of middlemen, individuals can sell goods, supplies, and services through the marketplaces that are
specifically built for that purpose.
4) C2B (Consumer-to-Business): An exact polar opposite of a C2B model is a B2C model. In contrast to
the B2C model, which is handled by a business on behalf of the customer, the C2B model allows end users
to offer their products and services to businesses. The approach is regularly employed in crowdsourcing-
based projects, the kinds of which frequently entail the production of logos, the sale of royalty-free
photos, media, design elements, etc.
5) B2A (Business-to-Administration): This model facilitates online transactions between companies and
public administration, i.e., sharing of information through central websites, empowering both governmen
and businesses to transact online. Using these platforms, businesses can submit bids for government
opportunities such as auctions, tenders, application submissions, etc. The scope of this system has grown
a result of the resources dedicated to e-governance.
6) C2A (Consumer-to-Administration): The C2A model describes the online transactions between
individual citizens and governmental authorities. With the help of the C2A e-commerce model,
consumers can communicate and interact with the local governmental authorities to ask questions and
exchange information on the public sector.
III. M ETHODOLOGY U SED
A. MERN STACK:
The MERN stack is a collection of four different technologies that work together to create dynamic web
applications and websites. We have used MERN Stack as our main full-stack technology in the
development of the project application.
50
GAYA COLLEGE OF ENGINEERING ,GAYA -823003
40
Fig. 1. Three layers of the MERN stack
The following are the components of the MERN stack:
1) MONGOBD: TheMERNstackutilizesthedatabaseknownasMongoDB.ItisaNoSQL
document-oriented database with a flexible schema and a query language based on JSON.
There is no prescribed schema that must be complied with when storing an object in a MongoDB
database.
It's not necessary for every document in a collection to have the same set of fields. As a result, you
don't
need to add or rename columns in the schema, particularly for the early phases of development.
MongoDB is a document-oriented database. A document or object is a unit of storage (which is
comparable to a row), while many documents are stored in collections (which is comparable to a table).
Each document in a collection has a special identification that can be used to access it. The identifier is
automatically indexed. In addition to the fact that many contemporary businesses—including
Facebook and Google—use MongoDB in their operations.
VIII. A CKNOWLEDGMENT
We would like to thank our Project Guide Prof. Satish Chadokar for their guidance and for helping us
with our project and for many other useful discussions. We thank our HOD Prof. Pravin Malviya and
Project Coordinator Prof. Vinay Sahu for their valuable pieces of advice and guidance throughout this
work. Lastly, we express our sincere gratitude to our Principal Dr. Paresh J. Shah for providing us with
the means to complete our project successfully.
REFERENCES
[1] Thi Thu Hien Tran. (2022). THE DEVELOPMENT OF AN ECOMMERCE WEB APPLICATION
USING MERN STACK
[2] Monika Mehra, Manish Kumar, Anjali Maurya, Charu Sharma, Shanu. (2021). MERN Stack Web
Development. Annals of the Romanian Society for CellBiology, 25(6), 11756–11761
[3] Naidu, N. D., Adarsh, P., Reddy, S., Raju, G., Kiran, U. S., Sharma, V., ... & Sharma, V. (2021).
E-Commerce web Application by using MERN Technology. International Journal for Modern Trends in
Science and Technology, 7, 1-5.
[4] Mai,N.(2020).E-commerceApplicationusingMERNstack.
[5] Subramanian,V.(2019).MongoDB.In:ProMERNStack.Apress,Berkeley,CA.
54 44
APPENDICES :-
ASP : ActiveServerPages
JSON : JavaScriptObjectNotation
BSON: BinaryJavaScriptObjectNotation
PHP : HypertextPreprocessor
MERN: MongoDB,Express,React.js,Node.js
JSX : JavaScriptSyntaxExtension
HTTP : HypertextTransferProtocol
HTML: HypertextMarkupLanguage
:
CSS CascadingStyleSheets
:
REST RepresentationalStateTransfer
:
API Applicationprogramminginterface
URL : UniformResourceLocator
NPM : NodePackageManager
NoSQL: Non-StructuredQueryLanguage
:MVC ModelViewController
:UI UserInterface
:ODM ObjectDataModelingDOMDocumentObjectModel
JWT : JSONWebToken
B2C : BusinesstoCustomer
ID:CT12DS3010
CERTIFICATE
OF INTERNSHIP EXPERIENCE
This certificate is proudly presented to
VIKASH KUMAR
successfully completed the Internship with Program at CODTECH IT
SOLUTIONS in “Mern Stack Web Development” from DECEMBER 5th,
2024 to FEBRUARY 5th, 2025. with unwavering dedication.
56
CODTECH IT SOLUTIONS
8-7-7/2, Plot No: 51,Opp:Naveena +91 9848925128
School, Hasthinapuram Central, [email protected]
Hyderabad , 500 079, Telangana www.codtechitsolutions.com
ID:CT12DS3012
CERTIFICATE
OF INTERNSHIP EXPERIENCE
This certificate is proudly presented to
RICHA RANI
successfully completed the Internship with Program at CODTECH IT
SOLUTIONS in “Mern Stack Web Development” from DECEMBER 5th,
2024 to FEBRUARY 5th, 2025. with unwavering dedication.
57
CODTECH IT SOLUTIONS
8-7-7/2, Plot No: 51,Opp:Naveena +91 9848925128
School, Hasthinapuram Central, [email protected]
Hyderabad , 500 079, Telangana www.codtechitsolutions.com
ID:CT12DS3012
CERTIFICATE
OF INTERNSHIP EXPERIENCE
This certificate is proudly presented to
SURAJ
YoSur
KUMAR
pSaragraSph S
successfully completed the Internship with Program at CODTECH IT
SOLUTIONS in “Mern Stack Web Development” from DECEMBER 5th,
2024 to FEBRUARY 5th, 2025. with unwavering dedication.
58
CODTECH IT SOLUTIONS
8-7-7/2, Plot No: 51,Opp:Naveena +91 9848925128
School, Hasthinapuram Central, [email protected]
Hyderabad , 500 079, Telangana www.codtechitsolutions.com
ID:CT12DS3011
CERTIFICATE
OF INTERNSHIP EXPERIENCE
This certificate is proudly presented to
SAURAV KUMAR
successfully completed the Internship with Program at CODTECH IT
SOLUTIONS in “Mern Stack Web Development”. DECEMBER 5th, 2024
to FEBRUARY 5th, 2025. with unwavering dedication.
59
THANKU .
60