TrendTrove is a full-stack E-Commerce application built with React.js, Node.js, MongoDB, Express.js, Razorpay API. It features a robust backend for managing products, users, orders, and payments.
- User Authentication: Secure login and registration with JWT and cookies.
- Product Management: Browse, search, and filter products. Admin dashboard for product creation and management.
- Shopping Cart: Add items to cart, update quantities, and checkout.
- Order Management: Track order status and history.
- Payment Integration: Secure payments powered by Razorpay.
- User Profiles: Manage account details.
- Admin Panel: Comprehensive dashboard to manage products and orders
- Frontend: React.js, Redux Toolkit, Material UI
- Backend: Node.js, Express.js
- Database: MongoDB
- Payment Gateway: Razorpay
- Image Storage: AWS S3
- CDN: CloudFront
- Deployment: AWS EC2
-
Navigate to the Backend directory:
cd Backend -
Install dependencies:
npm install
-
Configure Environment Variables: Create a
config/config.envfile in theBackenddirectory with the following keys:PORT=5000 DB_URL=your_mongodb_uri FRONTEND_URL=http://localhost:5173 JWT_SECRET=your_jwt_secret JWT_EXPIRE=5d COOKIE_EXPIRE=5 SMPT_SERVICE=gmail SMPT_MAIL=your_email@gmail.com SMPT_PASSWORD=your_email_password SMPT_HOST=smtp.gmail.com SMPT_PORT=465 RAZORPAY_API_KEY=your_razorpay_key RAZORPAY_API_SECRET=your_razorpay_secret AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_REGION= AWS_S3_BUCKET_NAME= CLOUDFRONT_DOMAIN= CLOUDFRONT_KEY_PAIR_ID=
-
Start the Backend server:
npm run dev
-
Navigate to the Frontend directory:
cd Frontend -
Install dependencies:
npm install
-
Configure Environment Variables: Create a
.envfile in theFrontenddirectory with the following key:VITE_BACKEND_URL=http://localhost:5000
-
Start the Frontend development server:
npm run dev