Rabbit is a full-stack clothing e-commerce application with a React storefront, an Express/MongoDB API, customer authentication, PayPal checkout, product search and filtering, and an admin dashboard.
- Responsive storefront with featured collections, new arrivals, and product details
- Product search, category/gender filters, sorting, and similar-product recommendations
- Guest cart support with cart merging after sign-in
- JWT authentication, protected routes, and role-based admin access
- PayPal checkout and order history
- Admin tools for users, products, inventory, and orders
- Cloudinary image uploads and SMTP/Brevo email notifications
- Structured request and error logging
- Frontend: React 19, Vite, React Router, Redux Toolkit, Tailwind CSS
- Backend: Node.js, Express 5, MongoDB, Mongoose, JWT, bcryptjs
- Integrations: PayPal, Cloudinary, Nodemailer/Brevo
E-comm/
├── frontend/ # React/Vite client
├── backend/ # Express API, database models, routes, and services
├── LICENSE
└── README.md
- Node.js 18 or newer
- A MongoDB database
- PayPal developer credentials for checkout
- SMTP/Brevo credentials for email features
- Cloudinary credentials for image uploads
git clone https://github.com/Jayant9917/E-comm.git
cd E-comm
cd backend && npm install
cd ../frontend && npm installCreate backend/.env:
MONGODB_URI=mongodb://localhost:27017/rabbit-store
JWT_SECRET=replace-with-a-long-random-secret
FRONTEND_URL=http://localhost:5173
BACKEND_URL=http://localhost:5000
PORT=5000
SMTP_USER=your-smtp-user
SMTP_PASS=your-smtp-password
SENDER_EMAIL=noreply@example.com
CLOUDINARY_CLOUD_NAME=your-cloud-name
CLOUDINARY_API_KEY=your-api-key
CLOUDINARY_API_SECRET=your-api-secretCreate frontend/.env:
VITE_BACKEND_URL=http://localhost:5000
VITE_PAYPAL_CLIENT_ID=your-paypal-client-idNever commit .env files or production credentials.
cd backend
npm run seed
npm run devIn a second terminal:
cd frontend
npm run devThe frontend runs at http://localhost:5173; the API runs at http://localhost:5000.
| Directory | Command | Purpose |
|---|---|---|
| backend | npm run seed:check |
Preview database seeding |
| backend | npm run test:logging |
Run logging tests |
| backend | npm run catalog:check |
Validate catalog upload |
| frontend | npm run lint |
Run ESLint |
| frontend | npm run build |
Create a production build |
The API includes route groups for users, products, carts, checkout, orders, administration, subscriptions, and image uploads. See backend/routes for current endpoints and authorization requirements.
Please read CONTRIBUTING.md before opening a pull request and follow CODE_OF_CONDUCT.md.
Please do not report vulnerabilities in public issues. Follow SECURITY.md.
This project is licensed under the MIT License.
Created and maintained by Jayant Rana.