A modern, full-stack eCommerce platform with React/Vite (frontend) and Node.js/Express/MongoDB (backend).
Features secure authentication, real-time cart management, an admin panel for product management, and integrated payments via Stripe & Razorpay.
- Frontend: ecommerce-app-frontend
- Admin Panel: ecommerce-app-admin
- Backend API: ecommerce-app-backend
- π JWT Authentication β Secure signup & login
- π Dynamic Cart β Add, update, and remove products instantly
- π¦ Order Tracking β Place and track orders
- π³ Stripe & Razorpay Payments β
- Stripe for secure global card transactions
- Razorpay for UPI, wallets, and INR
- π± Responsive UI β Optimized for mobile, tablet, and desktop
- πΌ Product Image Uploads β Powered by Multer & Cloudinary
Frontend
- React (Vite)
- Redux Toolkit
- Tailwind CSS
- React Router
Backend
- Node.js
- Express.js
- MongoDB + Mongoose
- JWT Authentication
- Multer for file uploads
Payments
- Stripe (international)
- Razorpay (India)
ecommerce-app/
β
βββ admin/ # Admin dashboard (React + Vite)
β βββ src/
β βββ package.json
β
βββ backend/ # Node.js + Express API
β βββ controllers/
β βββ models/
β βββ routes/
β βββ server.js
β βββ package.json
β
βββ frontend/ # Main storefront (React + Vite)
β βββ src/
β βββ package.json
β
βββ README.md
β‘ Installation
1οΈβ£ Clone the repository
bash
Copy
Edit
git clone https://github.com/CodeArtistDev/ecommerce-app.git
cd ecommerce-app
2οΈβ£ Install dependencies
bash
Copy
Edit
# Backend
cd backend
npm install
# Frontend
cd ../frontend
npm install
# Admin Panel
cd ../admin
npm install
3οΈβ£ Environment variables
Create .env in backend:
env
Copy
Edit
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
STRIPE_SECRET_KEY=your_stripe_secret_key
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret
CLOUDINARY_URL=your_cloudinary_url
4οΈβ£ Run the app
bash
Copy
Edit
# Backend
npm run dev
# Frontend
npm run dev
# Admin Panel
npm run dev
π³ Payment Flow
User adds products to the cart and proceeds to checkout
Chooses payment gateway:
Stripe for cards (international)
Razorpay for UPI, wallets, INR payments
On payment success, order is saved and inventory updated
π Roadmap
Product reviews & ratings
Wishlist functionality
Multi-language support
π License
Licensed under the MIT License.