This is a fully functional MERN stack fashion e-commerce website built using Vite + React.js for the frontend. The website integrates Stripe and Razorpay for payment processing and includes an admin panel for managing products, orders, and users.
- User Authentication (JWT-based login & signup)
- Product Management (CRUD operations)
- Shopping Cart (Add, remove, update items)
- Checkout Process (Shipping, payment, and order summary)
- Payment Integration (Stripe & Razorpay)
- Order Management (Track order history)
- Admin Panel (Dashboard for managing users, products, and orders)
- Responsive UI (Optimized for mobile and desktop)
- Frontend: Vite + React.js, Redux Toolkit, Tailwind CSS
- Backend: Node.js, Express.js, MongoDB
- Database: MongoDB Atlas
- Authentication: JWT (JSON Web Token)
- Payments: Stripe & Razorpay API
- State Management: Redux Toolkit
- Node.js (v16+)
- MongoDB (Local or Atlas)
- Stripe & Razorpay accounts for API keys
git clone https://github.com/codeMaestro78/TrendHive_ECommerce_Platform.git
cd trendhive- Navigate to the backend directory:
cd backend_trendhive- Install dependencies:
npm install- Create a
.envfile and add the following:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
STRIPE_SECRET_KEY=your_stripe_secret
RAZORPAY_KEY_ID=your_razorpay_key
RAZORPAY_KEY_SECRET=your_razorpay_secret- Start the backend server:
npm run start- Navigate to the frontend directory:
cd trendhive- Install dependencies:
npm install- Create a
.envfile and add:
VITE_BACKEND_URL=http://localhost:5000
VITE_STRIPE_PUBLIC_KEY=your_stripe_public_key
VITE_RAZORPAY_KEY=your_razorpay_key- Start the frontend server:
npm run devPOST /api/user/register- User RegistrationPOST /api/user/login- User LoginPOST /api/user/admin- Admin Login
GET /api/product/list- Get all productsPOST /api/product/remove- Remove a product (Admin)POST /api/product/single- Get single product details
POST /api/cart/get- Get user cartPOST /api/cart/add- Add item to cartPOST /api/cart/update- Update cart item
POST /api/order/stripe- Place an order with StripePOST /api/order/razorpay- Place an order with RazorpayPOST /api/order/userorders- Get user orders
POST /api/order/verifyStripe- Verify Stripe paymentPOST /api/order/verifyRazorpay- Verify Razorpay payment
- Your Name (GitHub)