Skip to content

Frontend for a minimal e-commerce site used to test customer support chat. Built with React to simulate user behavior and chat integration.

Notifications You must be signed in to change notification settings

ZiadGamalDev/ecommerce-react

Repository files navigation

E-Commerce Frontend (React)

A simple e-commerce frontend built with React.js to simulate user activity and support live chat testing with the backend. This project was used during development of the Customer Support System in the ITI Graduation Project.

🌐 Live Demo

🎯 Purpose

  • Simulate product search, browsing, and account behavior
  • Test customer-side socket chat with support agents
  • Serve as an external app consuming our e-commerce and support APIs

🛠️ Tech Stack

  • React.js
  • Axios
  • React Router DOM
  • Socket.IO client
  • Tailwind CSS

🛠️ Features

  • 🔐 Auth (JWT-based)
  • 🛍️ Product listing
  • 🧠 Simulates customer behavior (search, cart, view product)
  • 📡 Socket.IO client for real-time support chat integration

This frontend was mainly used to test the customer support features. It's not a full e-commerce store.

🚀 Quick Start

# Clone the repository
git clone https://github.com/ZiadGamalDev/ecommerce-react.git
cd ecommerce-react

# Install dependencies
npm install

# Create .env file for development
echo "VITE_API_URL=http://localhost:3001/" > .env
echo "VITE_SOCKET_URL=http://localhost:3000/" >> .env
echo "VITE_CHAT_CLIENT_URL=http://localhost:4201/" >> .env

# Start development server
npm run dev

🔧 Environment Variables

Development (.env)

VITE_API_URL=http://localhost:3001/
VITE_SOCKET_URL=http://localhost:3000/
VITE_CHAT_CLIENT_URL=http://localhost:4201/

Production (.env.production)

VITE_API_URL=https://ecommerce-node.dinamo-app.com/
VITE_SOCKET_URL=https://customer-support-node.dinamo-app.com/
VITE_CHAT_CLIENT_URL=https://ecommerce-chat-angular.dinamo-app.com/

🔗 Part of ITI Graduation Project

This project is one of multiple connected apps that together form the Customer Support System.

Related Repositories:

👉 View Root Repository

About

Frontend for a minimal e-commerce site used to test customer support chat. Built with React to simulate user behavior and chat integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5