ShopElite is a full-stack e-commerce web application built with React (Vite) for the frontend and Node.js + Express + MongoDB for the backend. It provides a modern shopping experience with authentication, product filtering, cart management, and checkout flow.
👥 User
- Register & Login with JWT authentication
- Persistent login (session stored in localStorage)
- View products by category (Men, Women, Home)
- Search, sort & filter products
- Add/Remove products from cart
- Proceed to checkout
🛒 Cart
- Global cart (shared across Men/Women/Home pages)
- Add items with "Quick Add"
- View cart details in a dedicated Cart page
- Cart items persist across navigation
🖼️ Products
- Responsive product cards with hover effects
- API-based product data served from backend
- Men & Women products managed via JSON DB
🔧 Tech Stack
- Frontend: React (Vite), TailwindCSS
- Backend: Node.js, Express.js
- Database: MongoDB
- Auth: JWT (JSON Web Token)
- Hosting: Vercel (frontend), Render (backend)
1️⃣ Clone the repo
git clone https://github.com/Josh-0115/ShopElite.git
cd ShopElite2️⃣ Backend Setup
cd backend
npm install- Create a
.envfile inbackend/with:MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key PORT=3001
- Run backend:
npm start
3️⃣ Frontend Setup
cd frontend
npm install
npm run dev- Frontend → Vercel
- Backend → Render
Contributions are welcome! Feel free to fork the repo and create a pull request.
This project is licensed under the MIT License.
Developed by Josh-0115 ✨