A full-stack Flipkart Clone built using the MERN stack (MongoDB, Express, React, Node.js). This project replicates core functionalities of the Flipkart e-commerce platform — including product listings, cart, login/signup, checkout, and admin functionalities.
- 🛍️ User authentication with JWT (Login / Register)
- 📦 Product listing with categories
- 🛒 Add to Cart & Checkout flow
- 💳 Payment gateway
- 🧾 Order history
- 🌐 Fully responsive UI
- React.js
- Redux (Toolkit or Thunk)
- Axios
- React Router DOM
- Material UI
- Node.js
- Express.js
- MongoDB with Mongoose
- JWT for auth
- bcryptjs for password hashing
- dotenv for environment variables
flipkart-clone/
│
├── backend/
│ ├── config/ # DB config & environment
│ ├── controllers/ # Business logic
│ ├── middleware/ # Auth, error handling
│ ├── models/ # Mongoose schemas
│ ├── routes/ # API endpoints
│ ├── utils/ # Helper functions
│ ├── server.js # Entry point
│ └── .env
├── frontend/
│ ├── public/
│ └── src/
│ ├── components/ # Reusable UI
│ ├── screens/ # Pages (Home, Login, Cart, etc.)
│ ├── redux/ # Redux store setup
│ ├── App.js
│ ├── index.js
│ └── App.css
├── .gitignore
├── README.md
screenshots/
├── home.png
├── product-page.png
├── cart.png
├── checkout.png
├── admin-dashboard.png
git clone https://github.com/beingnikil07/flipkart-MERN.git
cd flipkart-clonecd backend
npm installCreate a .env file inside backend/:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
Start the backend:
npm run devcd ../frontend
npm install
npm startVisit: http://localhost:3000
- Register new users with name, email, password
- Passwords are hashed using
bcrypt - JWT tokens used for protected routes
- Auth token stored in local storage
- Add/Edit/Delete products
- Manage users
- View orders
- Access admin panel via
/admin/dashboard
# Node
node_modules/
.env
# React
build/
.DS_Store- ✅ OTP-based login
- 🛒 Coupon system
- 🌙 Dark mode
- 📊 Sales analytics for admin
- 📱 Progressive Web App (PWA) support
Nikil Kumar
Java Backend Developer | AI Enthusiast
- GitHub: beingnikil07
- LinkedIn: linkedin.com/in/yourprofile
- Portfolio: your-portfolio.com
If you found this project helpful, don't forget to ⭐ the repo and share it with others!