Skip to content

πŸ›’ E-commerce frontend with product browsing, user auth, and order tracking. Built with React, Firebase, and TailwindCSS. Responsive design, JWT security, and API integration.React e-commerce UI: product browsing, auth, orders. Firebase + TailwindCSS.

Notifications You must be signed in to change notification settings

MAHIR-DEVES/GlobalBazaar-Client

Repository files navigation

GlobalBazaar - E-commerce Frontend

🌐 Global Bazaar Live Site: https://windy-cast.surge.sh

React Vite TailwindCSS

This repository contains the frontend of GlobalBazaar, an e-commerce platform built with React, Vite, and TailwindCSS.

✨ Key Features

  • Product Catalog with filtering by category
  • Shopping Cart functionality
  • JWT Authentication (Login/Register)
  • Order Management
  • Responsive Design for all devices

πŸ›  Tech Stack

  • Frontend: React.js
  • Styling: TailwindCSS + DaisyUI
  • State Management: React Query / Context API
  • Routing: React Router DOM
  • Build Tool: Vite

πŸš€ Setup Instructions

Prerequisites

  1. Node.js (v18+)
  2. Yarn or npm

Installation

# 1. Clone the repository
git clone <frontend-repo-url>
cd globalbazaar-frontend

# 2. Install dependencies
yarn install  # or npm install

# 3. Configure environment variables
Create a .env file with:
VITE_API_BASE_URL=http://localhost:3000

Running the App

yarn dev  # or npm run dev

App will run at: http://localhost:5173

πŸ“‚ Project Structure

src/
β”œβ”€β”€ assets/          # Static assets
β”œβ”€β”€ components/      # Reusable components
β”œβ”€β”€ contexts/        # Context providers
β”œβ”€β”€ hooks/           # Custom hooks
β”œβ”€β”€ pages/           # Page components
β”œβ”€β”€ routes/          # App routing
β”œβ”€β”€ services/        # API service functions
β”œβ”€β”€ styles/          # Global styles
└── utils/           # Utility functions

πŸ”— API Integration

The frontend communicates with these backend endpoints:

Authentication

POST / jwt; // Gets JWT token

Products

GET /get-allProducts         // All products
GET /singleProduct/:id       // Single product details
GET /filterCategory?category=:category  // Filter by category

Orders

POST /orders                // Create new order
GET /getAllOrder/:email     // Get user's orders
DELETE /orders/:id          // Cancel order

🌟 Additional Features

  • Marquee Animation for featured products
  • Quantity Update system
  • Toast Notifications for user actions
  • Loading Skeletons for better UX

πŸ“œ License

MIT License


Note for Developers:

  • Always use environment variables for API base URLs
  • Implement proper error handling for API calls
  • Follow React best practices for component structure

About

πŸ›’ E-commerce frontend with product browsing, user auth, and order tracking. Built with React, Firebase, and TailwindCSS. Responsive design, JWT security, and API integration.React e-commerce UI: product browsing, auth, orders. Firebase + TailwindCSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published