Skip to content

CodeArtistDev/ecommerce-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ eCommerce App

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.


πŸ“Έ Screenshots

Desktop View
Desktop View

Mobile View
Mobile View


🌐 Live Demo


πŸš€ Features

  • πŸ” 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

πŸ› οΈ Tech Stack

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)

πŸ“‚ Project Structure

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.



Releases

No releases published

Packages

No packages published

Languages