This is a full-stack MERN (MongoDB, Express.js, React.js, Node.js) and Cloudinary e-commerce website called Click and Collect. This project includes a Seller Dashboard but does not include an order button.
- User authentication (Register/Login) with JWT
- Seller dashboard for managing products
- Secure routes using middleware
- CRUD operations for products
- Password hashing with bcryptjs
- State management using Context API
- API calls with Axios
- Tailwind CSS for styling
- Cloudinary for storing image
- Express.js - Backend framework
- MongoDB & Mongoose - Database & ODM
- JWT - Authentication
- bcryptjs - Password hashing
- dotenv - Environment variables
- Cloudinary - Cloud Storage
- React.js - Frontend framework
- React Router - Navigation
- Context API - State management
- Axios - API requests
- Tailwind CSS - Styling
sh git clone https://github.com/SUKANT43/E-commerce-Mern cd click-and-collect
sh cd backend npm install
env
PORT=5000
MONGO_URL=mongodb://localhost:27017/clickandcollect
JWT_SECRET=your_jwt_secret
Cloudinary_Key=SWWW DWWE WEDWE WED
- Start the backend server: sh npm start
sh cd frontend npm install
- Start the frontend: sh npm start
- Open http://localhost:3000/
- Register/Login as a seller
- Manage products through the Seller Dashboard
click-and-collect/
βββ backend/
β βββ config/
β βββ controller/
β βββ middleWare/
β βββ model/
β βββ routes/
β βββ server.js
βββ frontend/
β βββ src/
β βββ assets/
β βββ components/
β βββ pages/
β βββ App.jsx
β βββ main.jsx
β βββ index.css
| Method | Route | Description |
|---|---|---|
| POST | /register | Register a new user |
| POST | /login | Authenticate a user |
| GET | /me | Get user profile |
| Method | Route | Description |
|---|---|---|
| GET | / | Get all products |
| POST | /add | Add a new product |
| PUT | /update/:id | Update a product |
| DELETE | /delete/:id | Delete a product |
- Postman - API Testing
- MongoDB Compass - Database Management
This project is MIT Licensed. Feel free to use and modify it.
- Fork the repository
- Create a new branch (feature-new)
- Commit changes (git commit -m 'Added new feature')
- Push to the branch (git push origin feature-new)
- Create a Pull Request
For any questions or suggestions, feel free to reach out:
- Email: [email protected] this









