BazarConnect is a full-stack e-commerce platform that allows users to buy and sell products seamlessly. Built using the MERN (MongoDB, Express, React, Node.js) stack, it provides a user-friendly interface and secure payment integration using Razorpay.
- Browse products across multiple categories
- Add products to the cart and checkout securely
- Track orders and view order history
- Leave reviews and ratings on products
- Create and manage product listings
- Track sales and earnings
- Manage inventory and stock levels
- User authentication using JWT and Passport.js
- Role-based access control (Admin, Seller, Buyer)
- Secure payments using Razorpay
- Next.js (React Framework)
- Tailwind CSS (Styling)
- Redux (State Management)
- Axios (API Calls)
- Node.js & Express.js (Server-side logic)
- MongoDB & Mongoose (Database)
- Razorpay (Payment Gateway Integration)
- JSON Web Token (JWT) for Authentication
git clone https://github.com/yourusername/bazarconnect.git
cd bazarconnectCreate a .env file in the root directory and add the following:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret cd backend
npm install
cd ../frontend
npm install cd backend
npm start cd frontend
npm run dev vercel git push origin main # If using Render or another platform| Method | Endpoint | Description |
|---|---|---|
POST |
/api/users/register |
Register a new user |
POST |
/api/users/login |
Authenticate user |
GET |
/api/products |
Get all products |
POST |
/api/products |
Create a new product (Seller only) |
POST |
/api/orders |
Place an order |
GET |
/api/orders/:id |
Get order details |
We welcome contributions! Feel free to submit a pull request or open an issue.
Made with ❤️ by BazarConnect Team