Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🛒 MERN eCommerce Website

React Node.js Express MongoDB Stripe Razorpay Vercel

A full-stack eCommerce application built with the MERN stack (MongoDB, Express.js, React.js, Node.js) and deployed on Vercel.
This project demonstrates how to build and deploy a modern online store with product browsing, cart management, checkout, and admin dashboard functionality.

sample login details: Email: user.gssde@gmail.com Password: qwerty123


🚀 Features

User Side

  • Browse and explore products
  • Filter and sort products
  • Select product variants (e.g., size)
  • Add products to cart
  • Place orders with delivery address
  • Payment options:
    • Cash on Delivery (COD)
    • Online payments via Stripe and Razorpay

Admin Dashboard

  • Upload new products
  • Delete products
  • View and manage all products in the store
  • Monitor customer orders

🛠️ Tech Stack

  • Frontend: React.js, Vite, TailwindCSS, Axios, React Router, React Toastify
  • Backend: Node.js, Express.js
  • Database: MongoDB (Mongoose ORM)
  • Payments: Stripe, Razorpay
  • Deployment: Vercel

📂 Project Structure

📦 ecommerce-app ├── 📂 backend │ ├── 📂 controllers # Business logic (products, orders, users) │ ├── 📂 models # Mongoose schemas (Product, User, Order) │ ├── 📂 routes # API endpoints (auth, products, orders, payments) │ ├── 📂 middleware # Auth, error handling │ ├── 📂 config # DB connection, Stripe/Razorpay setup │ ├── server.js # Backend entry point │ └── package.json # Backend dependencies │ ├── 📂 frontend │ ├── 📂 src │ │ ├── 📂 components # Reusable UI components │ │ ├── 📂 pages # Page-level views (Home, Cart, Checkout, Admin) │ │ ├── 📂 routes # React Router setup │ │ ├── 📂 context # Global state (cart, auth) │ │ ├── 📂 services # Axios API calls │ │ ├── App.jsx # Root component │ │ └── main.jsx # Entry point │ ├── 📂 public # Static assets │ └── package.json # Frontend dependencies │ ├── .env # Environment variables (Mongo URI, API keys) ├── vercel.json # Vercel deployment config ├── README.md # Documentation └── package.json # Root config (optional if split frontend/backend)


⚙️ Installation & Setup

  1. Clone the repository
    git clone https://github.com/your-username/ecommerce-app.git
    cd ecommerce-app
    
  2. Backend setup cd backend npm install npm run server
  • Add your environment variables in .env (MongoDB URI, Stripe keys, Razorpay keys, etc.)
  1. Frontend setup cd frontend npm install npm run dev
  • Configure VITE_BACKEND_URL in .env to point to your backend server.
  1. Build & Deploy
  • Frontend deployed on Vercel
  • Backend can be hosted on services like Render, Railway, or Vercel serverless functions

🌐 Live Demo 👉 View Project on Vercel Ecommerce Main page - https://forever-frontend-six-sage.vercel.app/ Admin Panel - https://forever-admin-panel-delta.vercel.app/

📸 Screenshots

  • Homepage with product listing

  • image
  • image
  • Cart & Checkout flow

  • image
image
  • Admin dashboard
  • image
image

Releases

Packages

Used by

Contributors

Languages