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.
- React 18
- Redux Toolkit
- React Router v6
- Tailwind CSS
- React Hook Form
- React Alert
- Node.js
- Express.js
- MongoDB
- Mongoose
- dotenv
- cors
ShopSphere/
β
βββ frontend-ShopSphere/
β
βββ backend-ShopSphere/Before running the project, make sure you have installed:
- Node.js (v18+ recommended)
- npm
- MongoDB Atlas account or local MongoDB setup
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=majorityCreate a .env file inside:
frontend-ShopSphere/Add:
REACT_APP_API_URL=http://localhost:8080git clone <your_repository_url>
cd ShopSphereOpen terminal inside:
backend-ShopSpherenpm installnpm startnpm run devBackend runs on:
http://localhost:8080Health Check:
GET /Open another terminal inside:
frontend-ShopSpherenpm installnpm startFrontend runs on:
http://localhost:3000| Route | Description |
|---|---|
/products |
Product APIs |
/categories |
Category APIs |
/brands |
Brand APIs |
/users |
User APIs |
/auth |
Authentication APIs |
/cart |
Cart APIs |
/orders |
Order APIs |
- User Authentication
- Product Listing
- Product Details
- Category Filtering
- Brand Filtering
- Add to Cart
- Order Placement
- Responsive UI
- Manage Products
- Manage Orders
- Manage Categories
- Manage Brands
- User Management
| Command | Description |
|---|---|
npm start |
Run development server |
npm test |
Run tests |
npm run build |
Create production build |
| Command | Description |
|---|---|
npm start |
Run backend server |
npm run dev |
Run backend with auto reload |
The frontend communicates with the backend API using:
REACT_APP_API_URLFor local development:
REACT_APP_API_URL=http://localhost:8080Default deployed backend:
https://shopsphere-lu1j.onrender.comMake sure the backend server is running before starting the frontend.
- 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 startinstead of:
npm install
npm start- Payment Gateway Integration
- Wishlist Feature
- Product Reviews & Ratings
- Search & Sorting
- Order Tracking
- Email Notifications
Developed by Vaibhav Kumar