Welcome to the Ecommerce MERN Platform, a full-stack eCommerce application built using the MERN stack. This project allows users to browse, add to cart, and securely purchase products while providing admins the ability to manage inventory and orders.
- 🔑 User authentication (Register/Login) with JWT
- 🛍️ Browse and search products
- 🛒 Add to cart and checkout with Razorpay integration
- 📦 Order tracking and history
- 🎛️ Admin dashboard for managing products, orders, and users
- 📸 Cloudinary integration for product images
- 📄 Responsive UI with Tailwind CSS
- Frontend: Next.js (TypeScript), Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB (MongoDB Atlas)
- Authentication: JWT (JSON Web Token)
- File Storage: Cloudinary
- Payments: Razorpay
/ecommerce-mern
│── client/ # Frontend (Next.js, TypeScript)
│── server/ # Backend (Node.js, Express.js, MongoDB)
│── .gitignore
│── README.md
│── CONTRIBUTING.md
git clone https://github.com/IndraniSom/ecommerce-mern.git
cd ecommerce-merncd server
npm installCreate a .env file in the server/ directory and add:
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
RAZORPAY_KEY_ID=your_razorpay_key
RAZORPAY_KEY_SECRET=your_razorpay_secretRun the backend server:
npm run devcd ../client
npm installCreate a .env.local file in the client/ directory and add:
NEXT_PUBLIC_API_URL=http://localhost:5000
NEXT_PUBLIC_RAZORPAY_KEY=your_razorpay_keyRun the frontend server:
npm run devVisit http://localhost:3000 to view the application.
We welcome contributions! To get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature-name) - Commit your changes (
git commit -m 'Add feature') - Push to your branch (
git push origin feature-name) - Create a pull request
For more details, check out the CONTRIBUTING.md.
⭐ Star this repo if you found it useful!