This is a fully functional eCommerce website built using the MERN stack (MongoDB, Express.js, React, Node.js). It provides a seamless online shopping experience, including features like product browsing, cart management, user authentication, and payment processing.
- User Authentication (Login/Register) π
- Admin Dashboard for Product & Order Management π οΈ
- Product Listing with Search & Filtering π
- Shopping Cart π
- Secure Checkout with Payment Gateway π³
- Order Management System π¦
- Responsive Design π±
- Frontend: React.js (with Redux for state management)
- Backend: Node.js, Express.js
- Database: MongoDB (Mongoose ORM)
- Authentication: JSON Web Tokens (JWT), bcrypt
- Payment Integration: RazorPay
- Cloud Storage: Multer (for product images)
- Deployment: Vercel (Frontend), Render (Backend)
/ecommerce-website
βββ backend/ # Node.js + Express.js Server
β βββ models/ # Database models (MongoDB)
β βββ routes/ # API routes
β βββ controllers/ # Business logic
βββ frontend/ # React.js Application
β βββ src/
β β βββ components/ # Reusable Components
β β βββ pages/ # Application Pages
β β βββ redux/ # State Management
β β βββ utils/ # Helper Functions
βββ .env # Environment Variables
βββ package.json # Dependencies
βββ README.md # Documentation
git clone https://github.com/your-username/ecommerce-mern.git
cd ecommerce-merncd server
npm installCreate a .env file inside the backend/ directory and add the necessary environment variables:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
STRIPE_SECRET_KEY=your_stripe_key
Run the backend server:
nodemoncd ../client
npm installRun the frontend:
npm run dev- Use Railway or Heroku for Node.js server
- Set up MongoDB Atlas for database hosting
- Configure
.envvariables in the deployment platform
- Use Vercel or Netlify for React app
- Ensure the frontend
.envfile contains the correct API URL for the backend
Feel free to fork this repository and submit pull requests for improvements! π
This project is licensed under the MIT License.
Made with β€οΈ by SURAJ KUMAR