Skip to content

rishipandey2/Ecommerce-website

Repository files navigation

Ecommerce Website – React + Backend Integration

📌 Project Overview

This project is a fully functional Ecommerce Website built using React, Vite, React Router, and Backend APIs.

The project includes:

  • Product Listing
  • Shopping Cart
  • Checkout Page
  • Orders Page
  • Backend Integration
  • REST API Requests
  • Automated Testing

🚀 Features

🏠 Home Page

  • Dynamic product rendering
  • Reusable product components
  • Responsive layout

🛒 Cart & Checkout

  • Add to cart
  • Update quantity
  • Delete cart items
  • Delivery option selection
  • Payment summary

📦 Orders

  • Create orders
  • Display previous orders
  • Order history page

🔗 Routing

  • Multi-page navigation using React Router
  • Shared Header Component
  • Link Components

🌐 Backend Integration

  • Fetch products
  • Fetch cart data
  • Fetch order data
  • API requests using Axios

🧪 Testing

  • Unit Testing
  • Integration Testing
  • Mock Implementations
  • User Interaction Testing

🛠️ Tech Stack

Frontend

  • React
  • Vite
  • React Router DOM
  • Axios
  • HTML5
  • CSS3

Backend

  • Node.js
  • REST API

Testing

  • Jest
  • React Testing Library

⚙️ Installation & Setup

1️⃣ Clone Repository

git clone https://github.com/your-username/ecommerce-project.git

2️⃣ Go to Project Folder

cd ecommerce-project

3️⃣ Install Dependencies

npm install

4️⃣ Start Development Server

npm run dev

🔥 Backend Setup

Start backend server:

npm start

📡 API Endpoints

Method Endpoint Description
GET /products Fetch products
GET /cart Fetch cart
PUT /deliveryOptions Update delivery option
DELETE /cartItem Delete cart item
POST /orders Create order

📸 Screenshots

Add screenshots here:

  • Home Page
  • Checkout Page
  • Orders Page
  • Cart Functionality

📈 Future Improvements

  • User Authentication
  • Payment Gateway Integration
  • Wishlist Feature
  • Product Search & Filters
  • Admin Dashboard
  • Mobile Responsive Design

📄 License

This project is created for educational and learning purposes.


👨‍💻 Author

Your Name
GitHub: https://github.com/rishipandey2

About

Ecommerce Website – React + Backend Integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors