Skip to content

Seamless shopping, search and explore different product categories, add products to cart, and checkout swiftly. Become a seller and add products, monitor sales, and gather customer feedback.

Notifications You must be signed in to change notification settings

Yogndrr/MERN-Ecommerce-Site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

SHOPCART: Ecommerce Site

Seamless shopping, search and explore different product categories, add products to cart, and checkout swiftly.
Become a seller and add products, monitor sales, and gather customer feedback.


Youtube Video

LinkedIn

About

ShopCart is an ecommerce site developed using the MERN (MongoDB, Express.js, React, Node.js) stack. It offers a user-friendly and efficient shopping experience for customers, while providing sellers with essential tools to manage their products and sales.

Features

  • User Registration: ShopCart allows users to register as customers or sellers, enabling a tailored shopping experience.

  • Cart System: Customers can add products to their cart for easy checkout. The cart allows them to review and manage their selections before completing the purchase.

  • Product Search: ShopCart offers a search functionality where customers can find products by name or browse through categories such as Electronics, Clothes, Kitchen, and more.

  • Reviews and Ratings: Customers can leave reviews and ratings (out of 5) for products they've purchased, providing valuable feedback for sellers and building trust within the community.

  • Seller Dashboard: Sellers have access to a dedicated dashboard where they can manage their products, view sales data, and gain insights into their store's performance through data visualization.

  • Product Management: Sellers can add products with detailed information and set their prices. They can also check which customers have added their products to their carts.

  • Order Tracking: Sellers can monitor the products ordered by customers, helping them stay organized and fulfill orders efficiently.

Technologies Used

  • Frontend: React.js, Material UI, Redux Toolkit, Styled Components
  • Backend: Node.js, Express.js, JWT Token
  • Database: MongoDB
  • Data Visualization: React Apexcharts

Installation

git clone https://github.com/Yogndrr/MERN-Ecommerce-Site.git

Open 2 terminals in separate windows/tabs.

Terminal 1: Setting Up Backend

cd backend
npm install
npm start

Create a file called .env in the backend folder. Inside it write this :

MONGO_URL = mongodb://127.0.0.1/ecommerce

SECRET_KEY = 'secret-key'

Instead of this link write your database link.

Terminal 2: Setting Up Frontend

cd frontend
npm install
npm start

Now, navigate to localhost:3000 in your browser. The Backend API will be running at localhost:5000.

Error Solution

If you encounter a network error while signing up, follow these steps to resolve it:

  1. Navigate to the src > redux > userHandle.js file.

  2. Add the following line after the import statements:

const REACT_APP_BASE_URL = "http://localhost:5000";
  1. Replace all instances of process.env.REACT_APP_BASE_URL with REACT_APP_BASE_URL.

The issue arises because the .env file in the frontend may not work for all users, while it works for me.

These steps should resolve the network error in the frontend. If the issue persists, feel free to contact me for further assistance.

Don't forget to leave a star for this project if you found the solution helpful. Thank you!

Deployment

  • Render - server side
  • Vercel - client side

About

Seamless shopping, search and explore different product categories, add products to cart, and checkout swiftly. Become a seller and add products, monitor sales, and gather customer feedback.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages