Skip to content

ervg0203/ShopSphere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ShopSphere πŸ›’

ShopSphere is a full-stack ecommerce web application built using the MERN stack.
It provides a modern online shopping experience with features like product browsing, authentication, cart management, order handling, and admin functionalities.


πŸš€ Tech Stack

Frontend

  • React 18
  • Redux Toolkit
  • React Router v6
  • Tailwind CSS
  • React Hook Form
  • React Alert

Backend

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • dotenv
  • cors

πŸ“‚ Project Structure

ShopSphere/
β”‚
β”œβ”€β”€ frontend-ShopSphere/
β”‚
└── backend-ShopSphere/

βš™οΈ Prerequisites

Before running the project, make sure you have installed:

  • Node.js (v18+ recommended)
  • npm
  • MongoDB Atlas account or local MongoDB setup

πŸ” Environment Variables

Backend .env

Create a .env file inside:

backend-ShopSphere/

Add:

MONGO_URI=<your_mongodb_connection_string>

Example:

MONGO_URI=mongodb+srv://<user>:<password>@<cluster>/<db>?retryWrites=true&w=majority

⚠️ Do not commit real credentials.


Frontend .env

Create a .env file inside:

frontend-ShopSphere/

Add:

REACT_APP_API_URL=http://localhost:8080

πŸ“¦ Installation

1️⃣ Clone Repository

git clone <your_repository_url>
cd ShopSphere

πŸ–₯️ Backend Setup

Open terminal inside:

backend-ShopSphere

Install Dependencies

npm install

Run Backend

Production Mode

npm start

Development Mode

npm run dev

Backend runs on:

http://localhost:8080

Health Check:

GET /

🎨 Frontend Setup

Open another terminal inside:

frontend-ShopSphere

Install Dependencies

npm install

Run Frontend

npm start

Frontend runs on:

http://localhost:3000

πŸ”— API Route Groups

Route Description
/products Product APIs
/categories Category APIs
/brands Brand APIs
/users User APIs
/auth Authentication APIs
/cart Cart APIs
/orders Order APIs

✨ Features

User Features

  • User Authentication
  • Product Listing
  • Product Details
  • Category Filtering
  • Brand Filtering
  • Add to Cart
  • Order Placement
  • Responsive UI

Admin Features

  • Manage Products
  • Manage Orders
  • Manage Categories
  • Manage Brands
  • User Management

πŸ“Έ Screenshots

Screenshot 2026-05-13 013423 Screenshot 2026-05-13 013710 Screenshot 2026-05-13 013739 Screenshot 2026-05-13 013820 Screenshot 2026-05-13 013456 Screenshot 2026-05-13 013521 Screenshot 2026-05-13 013621

πŸ› οΈ Available Scripts

Frontend

Command Description
npm start Run development server
npm test Run tests
npm run build Create production build

Backend

Command Description
npm start Run backend server
npm run dev Run backend with auto reload

🌐 Frontend & Backend Integration

The frontend communicates with the backend API using:

REACT_APP_API_URL

For local development:

REACT_APP_API_URL=http://localhost:8080

Default deployed backend:

https://shopsphere-lu1j.onrender.com

Make sure the backend server is running before starting the frontend.


⚠️ Notes

  • Keep both frontend and backend running together for full functionality.
  • Ensure your MongoDB URI is valid and URL-safe.
  • If PowerShell blocks npm scripts on Windows, use:
npm.cmd install
npm.cmd start

instead of:

npm install
npm start

πŸ“Œ Future Improvements

  • Payment Gateway Integration
  • Wishlist Feature
  • Product Reviews & Ratings
  • Search & Sorting
  • Order Tracking
  • Email Notifications

πŸ‘¨β€πŸ’» Author

Developed by Vaibhav Kumar


About

ShopSphere is a full-stack MERN ecommerce application featuring user authentication, product management, cart functionality, order handling, and admin controls. Built with React, Redux Toolkit, Node.js, Express, and MongoDB, it delivers a modern and responsive online shopping experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages