Project Report Final
Project Report Final
Project report submitted in partial fulfillment of the requirement for the degree
of
Bachelor of Technology
In
Computer Science Engineering
By
VANLALRINCHHANA (BT20CS008)
UNDER SUPERVISION OF
Dr.C.LALENGMAWIA
2024
1
PROJECT APPROVAL FORM
Supervisor:
_______________
Date:
_______________
Head of Department:
_________________
Date:
_________________
Date:_____________
Place:____________
ii
DECLARATION
----------------------------
(Signature)
VANLALRINCHHANA Dr.C.Lalengmawia
BT20CS008 Supervisor
Date: --/--/----
iii
iii
CERTIFICATE
It is certified that the work contained in report title ‘Online Laptop Store’
submitted by VANLALRINCHHANA, BT20CS008 for the award of
B.Tech is absolutely based on his/her own work carried out under my/our
supervision and that this work/thesis reported herein has not been
submitted elsewhere for any degree/diploma by any other candidate.
Date: --/--/----
iv
ACKNOWLEDGEMENT
Vanlalrinchhana
(BT20CS008)
v
Abstract
In today's era, technology plays a crucial role in our daily lives, with
many relying on e-commerce platforms for various needs like shopping
for clothes,groceries, and electronics. Our team has crafted an
e-commerce web application using MERN stack technology, which
comprises MongoDB, Express.JS, React.JS, and Node.JS. This
application boasts a seamless user experience, offering distinct
interfaces for both users and administrators. Moreover, it's equipped with
a secure payment gateway for hassle-free checkouts. With our platform,
users can browse and purchase a wide array of laptops, selecting from
diverse styles to suit their preferences. The project encompasses
administrative functionalities including product and category
management, an admin dashboard, and seamless cart management for
customers. Transactions are facilitated through Razorpay for a smooth
and secure payment process.
vi
List Of Contents
Project Title--------------------------------------------------------------------------------------------------------- i
Certificate of Approval----------------------------------------------------------------------------------------- ii
Declaration-------------------------------------------------------------------------------------------------------- iii
Certificate----------------------------------------------------------------------------------------------------------iv
Acknowledgement-----------------------------------------------------------------------------------------------v
Abstract------------------------------------------------------------------------------------------------------------ vi
List of Figures---------------------------------------------------------------------------------------------------vii
1.Introduction----------------------------------------------------------------------------------------------------- 1
1.1 Introduction----------------------------------------------------------------------------------------------- 1
1.2 Problem Statement------------------------------------------------------------------------------------- 1
1.3 Objective---------------------------------------------------------------------------------------------------2
2. Literature Review---------------------------------------------------------------------------------------------3
2.1 Evolution of Social Media Technology------------------------------------------------------------- 3
2.2 Comparison of Web Development Tech Stacks------------------------------------------------- 3
2.3 Understanding the MERN Stack---------------------------------------------------------------------3
2.4 MERN Stack Implementation in E-commerce App--------------------------------------------- 3
2.5 Practical Application of the MERN Stack----------------------------------------------------------4
2.6 Addressing Privacy and Security Concerns in Ecommerce app---------------------------- 4
3 System Development---------------------------------------------------------------------------------------- 5
3.1Design Overview of Fullstack Responsive Ecommerce App----------------------------------5
Backend Design----------------------------------------------------------------------------------------- 5
Frontend Design----------------------------------------------------------------------------------------- 5
User Authentication------------------------------------------------------------------------------------- 5
Payment--------------------------------------------------------------------------------------------------- 5
3.2 Technologies Used-------------------------------------------------------------------------------------- 6
Languages------------------------------------------------------------------------------------------------ 6
Package Manager--------------------------------------------------------------------------------------- 6
Frameworks-----------------------------------------------------------------------------------------------6
Libraries----------------------------------------------------------------------------------------------------7
MongoDB-------------------------------------------------------------------------------------------------- 9
VS Code--------------------------------------------------------------------------------------------------- 9
Google Chrome------------------------------------------------------------------------------------------ 9
4. Snapshot of Laptop Store------------------------------------------------------------------------------- 10
5. Conclusion----------------------------------------------------------------------------------------------------19
6. Future Scope------------------------------------------------------------------------------------------------- 19
7. References---------------------------------------------------------------------------------------------------- 20
vii
vii
List of Figures
Sl no. Figure Name Pg no.
1 HomePage 9
2 Sign in 9
3 Registration 10
4 Product Card 10
6 Cart Page 10
7 Payment Method 11
8 Shipping page 11
9 Place Orders 12
10 Order Details 12
12 Payment Gateway 13
13 Admin Login 13
14 Admin Dashboard 14
15 Product List 15
16 Create Product 15
19 User List 17
20 Admin Profile 17
viii
CHAPTER-1
Introduction
1.1 Introduction
In today's digital age, technology has become indispensable for effective online
marketing strategies. The global trend increasingly leans towards online shopping,
highlighting its convenience and accessibility. However, traditional offline stores,
including small shops and grocery stores, continue to operate. Despite their
presence, offline shopping experiences often fall short, leading to customer
dissatisfaction.
For instance, offline stores may offer discounts or promotions that customers
are unaware of, leading to missed opportunities. Additionally, customers may
encounter inconvenience when urgently needing a product only to find it out of stock
upon arrival. In contrast, online shopping offers a plethora of advantages. Customers
can explore a vast array of products tailored to their preferences and compare prices
across different platforms effortlessly.
Recognizing the shortcomings of offline shopping, the development of
e-commerce web applications has become imperative. . Moreover, online shopping
often presents cost advantages, with products typically priced lower compared to
their offline counterparts.In addressing the limitations of traditional shopping
methods, the adoption of e-commerce web applications emerges as a viable
solution. Leveraging technologies like the MERN stack offers unparalleled
opportunities to create robust and efficient platforms. With its comprehensive toolkit
comprising MongoDB, Express.js, React.js, and Node.js, the MERN stack enables
the development of highly functional and user-friendly web applications.
By embracing e-commerce solutions built on the MERN stack, businesses can
enhance their online presence, streamline operations, and provide superior shopping
experiences to customers. Ultimately, the shift towards online shopping not only
addresses existing challenges but also fosters a dynamic marketplace conducive to
growth and innovation.
1
Express.js, React.js, Node.js) stack offers a robust framework for developing such a
platform.
1.3 Objective
The aim of this project is to create a user-friendly web application for browsing
and purchasing clothes. The E-commerce platform will allow the admin to add
products,delete a products and can manage the ujsers of the store.The Admin can
also manage the order status and reviews of the product through the admin
dashboard Customers will have the convenience of easily searching for their desired
items and adding them to their cart with a simple click. They can adjust the quantity
of items in their cart .Once items are added, they can view the total amount in their
cart. Additionally, a secure payment gateway will be integrated, enabling payments
via debit card, credit card, and net banking for a seamless shopping experienc
2
CHAPTER-2
Literature Review
3
2.5 Practical Application of the MERN Stack
Practical tutorials provide step-by-step guidance on building full-stack web
applications using the MERN stack, incorporating Redux Toolkit for state
management. These tutorials cover backend setup with Node.js, Express, and
MongoDB, frontend development with React and Redux Toolkit, and key concepts
such as Redux slices, asynchronous actions, and CRUD operations.
4
CHAPTER-3
System Development
Backend Design
The backend of the Fullstack Responsive Ecommerce App is developed using Node.js and
Express.js. It comprises various controllers and routes to handle client-side requests
effectively. Additionally, a MongoDB database is integrated into the backend to store user
and product data. JSON Web Tokens (JWTs) play a vital role in user authentication and
authorization, ensuring secure access to the application's functionalities.
Frontend Design
The frontend of the application is constructed using React, leveraging multiple components
to create a seamless user interface (UI). The design prioritizes responsiveness and
accessibility, ensuring optimal performance across diverse screen sizes and device types.
User Authentication
User authentication is a cornerstone feature of the application, implemented using JWTs for
enhanced security. Upon login or registration, the backend generates a JWT token, which is
then stored in the user's local storage. Subsequently, the user's identity is verified through
the token, enabling seamless interaction with the backend services. Furthermore, the
application includes a logout feature, allowing users to securely terminate their sessions by
removing the JWT from local storage.
Payment
Payment is implemented using Razorpay.Razorpay is an Indian online payment gateway
company that enables businesses to accept, process, and disburse digital payments.
Established in 2014, Razorpay offers a wide range of payment solutions, including payment
gateway integration, payment links, subscription billing, and invoicing.One of Razorpay's key
features is its easy-to-use API, which allows developers to integrate payment functionality
into websites and mobile applications seamlessly. Through its API, businesses can accept
payments via various methods, including credit/debit cards, net banking, UPI (Unified
Payments Interface), wallets, and more.
5
3.2 Technologies Used
In the development of the Ecommerce app, various technologies have been utilized to
ensure the creation of a robust and efficient application. Below is an overview of the
technologies employed and their respective roles in the development process:
Languages
HTML, CSS, and JavaScript serve as the foundational languages for web development and
are indispensable in creating the user interface and functionality of the social media
application. HTML is utilized for organizing the structure and content of web pages, CSS is
employed for styling and design, while JavaScript enables dynamic interactions and
behavior on the client-side.
HTML (HyperText Markup Language): HTML is instrumental in structuring the content of web
pages, defining the layout, and providing semantic meaning to various elements such as
headings, paragraphs, images, and links. Its role is crucial in establishing the foundation of
the application's user interface.
CSS (Cascading Style Sheets): CSS is responsible for styling the visual presentation of the
application, including aspects such as color schemes, typography, layout, and
responsiveness. It enhances the aesthetic appeal and user experience of the social media
app through visually appealing design elements.
JavaScript: JavaScript adds interactivity and dynamic behavior to the application, allowing
for features such as user input validation, handling of asynchronous requests, and creation
of interactive user interfaces. It plays a pivotal role in enhancing the functionality and
responsiveness of the social media app.
Package Manager
npm serves as the package manager for the Node.js environment, facilitating the installation,
management, and sharing of packages or modules used in the development of Node.js
applications. It simplifies the process of managing dependencies, ensuring seamless
integration of external libraries and modules into the project.
Frameworks
6
React: React is a popular JavaScript library for building user interfaces, known for its
component-based architecture and virtual DOM rendering. It enables the creation of
reusable UI components and facilitates the development of interactive and dynamic
user interfaces for various functionalities within the social media app.
React Router Dom: React Router Dom is a package that enables routing in React
applications, allowing for navigation between different views or pages within the app.
It facilitates the creation of a multi-page user experience while maintaining a
single-page application architecture.
Express.js: Express.js is a minimalist web framework for Node.js that simplifies the
process of building web applications and APIs. It provides a robust set of features,
including middleware support, routing, and HTTP utility methods, facilitating the
development of scalable and performant server-side applications for the social media
app
.
Mongoose: Mongoose is an object data modeling (ODM) library for MongoDB and
Node.js, providing a schema-based solution for modeling application data. It enables
developers to define data models, perform CRUD operations, and establish
relationships between data entities in the MongoDB database, serving as a crucial
tool for data management in the social media app.
Libraries
Libraries extend the functionality of the application by providing pre-built
components, utilities, and modules for specific tasks. The following libraries have
been utilized :
Axios: Axios is a JavaScript library used for making HTTP requests from the
client-side to the server-side API. It simplifies the process of fetching data from
external sources and handling asynchronous operations within the application.
Bcrypt: Bcrypt is a JavaScript library used for hashing passwords and implementing
secure password storage mechanisms. It enhances the security of user
authentication by encrypting passwords before storing them in the database,
mitigating the risk of unauthorized access
.
7
Dotenv: Dotenv is a JavaScript library used for loading environment variables from a
.env file into the application's runtime environment. It simplifies the process of
managing configuration variables such as API keys, database URLs, and
environment-specific settings.
8
redux: Redux provides centralized state management and predictable state updates
through actions and reducers, facilitating efficient data flow and seamless integration
with React applications.
react-bootstrap : React Bootstrap is a library that provides React components based
on Bootstrap, allowing developers to easily incorporate Bootstrap's styling and
functionality into their React applications. It offers a set of pre-designed components,
such as buttons, modals, and alerts, that can be used to create responsive and
visually appealing UIs.
react-scripts : React Scripts is a set of scripts and tools used for building, testing,
and running React applications. It includes scripts for tasks such as starting a
development server, building production bundles, running tests, and ejecting
configurations.
web-vitals: Web Vitals is a package used for monitoring and measuring key
performance metrics of web applications, such as loading speed, interactivity, and
visual stability. It provides functionality for capturing and reporting these metrics to
help developers identify and address performance issues in their applications.
MongoDB
MongoDB is a document-oriented database system designed to store data in
JSON-like format, providing flexibility for unstructured data storage along with robust
indexing and replication features accessible through intuitive APIs.
VS Code
Visual Studio Code is a lightweight yet powerful code editor equipped with features
for debugging, task management, and version control. It aims to streamline the code
development process by offering tools like code autocompletion, debugging
assistance, and support for third-party extensions.
Google Chrome
Google Chrome Developer Tools, integrated into the Chrome browser, provide
developers with a suite of utilities for analyzing, debugging, and optimizing web
applications. Similar tools are available in other browsers like Mozilla Firefox,
catering to developers' needs for efficient web development workflows.
9
Chapter-4
Homepage:
Fig.1 Homepage
Fig 2.Sign in
10
Fig 3.Registration
ProductCard
Fig 4 ProductCard
CartPage
Fig 5.CartPage
11
Shipping page
12
Place Order Page
13
Payment Gateway
14
Admin Login Page
Admin Dashboard
15
Product List Page
16
Order List
17
User List
Admin Profile
18
Chapter-6
Conclusion
Our e-commerce web application for the sale of laptops using MERN stack will serve
as a game-changer for small-scale textile industries, allowing them to bypass
traditional wholesalers and retailers and connect directly with customers. By
leveraging advanced technologies and user-centric design principles, we will provide
a platform that is both visually appealing and highly functional, enabling customers to
browse and purchase laptops from the comfort of their homes or offices. With
features such as secure login authent
ication, admin authorization, and seamless payment gateway integration, our
platform will offer a level of convenience and efficiency previously unseen in the
industry. By empowering textile industries to sell their products directly to consumers,
our web application will not only save money for both sellers and buyers but also
foster greater transparency and trust in the e-commerce ecosystem.
19
Chapter-7
References
1.https://www.mongodb.com/
2.Yogesh Baiskar, Priyas Paulzagade, Krutik Koradia, Pramod Ingole, Dhiraj Shirbhate,
“MERN: A Full-Stack Development”, International Journal for Research in Applied
Science & Engineering Technology (IJRASET) ISSN: 2321-9653; IC Value: 45.98; SJ
Impact Factor: 7.538 Volume 10 Issue I Jan 2022.
3.https://expressjs.com
4.Ullah, S. E., Alauddin, T., & Zaman, H. U. (2016, January). Developing an
E-commerce website. In 2016 International Conference on Microelectronics,
Computing and Communications (MicroCom) (pp. 1-4). IEEE
5. Shah, M. (2021). MERN Stack – A Complete Guide. Available at:
https://www.geeksforgeeks.org/mern-stack-a-complete-guide/.
20
21