Skip to content

Modern React.js food delivery platform with responsive design, real-time cart management, user authentication, and Stripe payment integration. Built with Vite for optimal performance.

License

Notifications You must be signed in to change notification settings

tabrez-rabbani/Zayka-Express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Zayka Express - Frontend Showcase

React Vite JavaScript License

🎯 Project Overview

Zayka Express is a modern, responsive e-commerce platform specialized in authentic food delivery and online ordering services. This repository contains the frontend implementation built with React.js and Vite, showcasing modern web development practices, clean UI/UX design, and seamless user experience.

⚠️ Note: This repository contains only the frontend code for portfolio demonstration purposes. The backend API, database, and admin panel are privately hosted as this is a production application currently serving real customers.

✨ Key Features

πŸ›οΈ E-Commerce Functionality

  • Food Catalog: Browse through extensive food collections with categories
  • Food Details: Comprehensive product information with images and descriptions
  • Shopping Cart: Add, remove, and manage cart items with real-time updates
  • Order Management: Place orders and track order history
  • User Authentication: Secure login/registration system with JWT tokens
  • Payment Integration: Stripe payment gateway integration
  • Search & Filter: Advanced food search and category filtering

🎨 User Experience

  • Responsive Design: Optimized for all device sizes (mobile-first approach)
  • Modern UI/UX: Clean, intuitive interface with smooth animations
  • Fast Loading: Optimized performance with Vite build tool
  • Interactive Components: Dynamic food display and cart management
  • Toast Notifications: Real-time feedback for user actions
  • Protected Routes: Authenticated pages for orders and profile
  • Favorites System: Save favorite food items for quick access

πŸ“± Pages Implemented

  • Home: Landing page with food categories and featured items
  • All Foods: Complete food catalog with search and filter
  • Food Detail: Individual food item details with add to cart
  • Cart: Shopping cart management with quantity controls
  • Place Order: Checkout process with user details and payment
  • My Orders: Order history and tracking for logged-in users
  • Profile: User profile management and settings
  • Favorites: Saved favorite food items
  • Search Results: Dynamic search results display
  • Contact Us: Customer support and contact information
  • About Us: Company information and story
  • Delivery: Delivery information and policies
  • Privacy Policy: Privacy and data protection policies
  • Verify: Order verification and confirmation page

πŸ› οΈ Technology Stack

Frontend Framework

  • React.js (v18.2.0) - Modern JavaScript library for building user interfaces
  • Vite (v5.0.8) - Fast build tool and development server
  • React Router DOM (v6.22.0) - Client-side routing and navigation

UI/UX Libraries

  • React Toastify (v10.0.4) - Toast notification system
  • CSS3 - Custom styling with modern CSS features
  • Responsive Design - Mobile-first responsive layout

API & State Management

  • Axios (v1.6.7) - HTTP client for API calls
  • React Context API - Global state management for cart, user, and app state
  • Custom Hooks - Reusable logic components
  • Local Storage - Persistent storage for user sessions

Payment & Security

  • Stripe (v3.0.3) - Payment processing integration
  • JWT Authentication - Secure user authentication
  • Protected Routes - Route-level access control

Development Tools

  • ESLint - Code quality and consistency
  • Vite Plugins - Development enhancement and build optimization
  • Modern JavaScript (ES6+) - Latest JavaScript features

πŸ—οΈ Project Structure

frontend/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/          # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ Navbar/         # Navigation component
β”‚   β”‚   β”œβ”€β”€ Header/         # Page header component
β”‚   β”‚   β”œβ”€β”€ Footer/         # Footer component
β”‚   β”‚   β”œβ”€β”€ LoginPopup/     # Authentication modal
β”‚   β”‚   β”œβ”€β”€ FoodDisplay/    # Food items grid display
β”‚   β”‚   β”œβ”€β”€ FoodItem/       # Individual food item component
β”‚   β”‚   β”œβ”€β”€ ExploreMenu/    # Category menu component
β”‚   β”‚   β”œβ”€β”€ SearchResults/  # Search results display
β”‚   β”‚   β”œβ”€β”€ StarRating/     # Rating system component
β”‚   β”‚   β”œβ”€β”€ ReviewsList/    # Reviews display component
β”‚   β”‚   β”œβ”€β”€ OrderTracking/  # Order status tracking
β”‚   β”‚   β”œβ”€β”€ FavoriteButton/ # Favorite toggle component
β”‚   β”‚   β”œβ”€β”€ UserReviews/    # User review management
β”‚   β”‚   └── AppDownload/    # App download section
β”‚   β”œβ”€β”€ pages/              # Route components
β”‚   β”‚   β”œβ”€β”€ Home/           # Landing page
β”‚   β”‚   β”œβ”€β”€ AllFoods/       # Food catalog page
β”‚   β”‚   β”œβ”€β”€ FoodDetail/     # Individual food detail page
β”‚   β”‚   β”œβ”€β”€ Cart/           # Shopping cart page
β”‚   β”‚   β”œβ”€β”€ PlaceOrder/     # Checkout page
β”‚   β”‚   β”œβ”€β”€ MyOrders/       # Order history page
β”‚   β”‚   β”œβ”€β”€ Profile/        # User profile page
β”‚   β”‚   β”œβ”€β”€ Favorites/      # Favorite items page
β”‚   β”‚   β”œβ”€β”€ ContactUs/      # Contact page
β”‚   β”‚   β”œβ”€β”€ AboutUs/        # About page
β”‚   β”‚   β”œβ”€β”€ Delivery/       # Delivery info page
β”‚   β”‚   β”œβ”€β”€ PrivacyPolicy/  # Privacy policy page
β”‚   β”‚   └── Verify/         # Order verification page
β”‚   β”œβ”€β”€ Context/            # Global state management
β”‚   β”‚   └── StoreContext.jsx # Main app context
β”‚   β”œβ”€β”€ assets/             # Static resources (images, icons)
β”‚   β”œβ”€β”€ App.jsx             # Main app component with routing
β”‚   β”œβ”€β”€ main.jsx            # Application entry point
β”‚   └── index.css           # Global styles
β”œβ”€β”€ public/                 # Public assets and index.html
β”œβ”€β”€ package.json            # Dependencies and scripts
β”œβ”€β”€ vite.config.js          # Vite build configuration
β”œβ”€β”€ .eslintrc.cjs           # ESLint configuration
└── .gitignore              # Git ignore rules

πŸš€ Quick Start

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn package manager

Installation

# Clone the repository
git clone [repository-url]
cd zayka-express

# Navigate to frontend directory
cd frontend

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

# Run ESLint
npm run lint

Environment Setup

Create a .env file in the frontend directory if needed:

VITE_API_URL=http://localhost:4000
VITE_STRIPE_PUBLIC_KEY=your_stripe_public_key

πŸ”’ Security & Privacy

Why Backend is Private?

  • Production Environment: This is a live Zayka Express platform serving real customers
  • Sensitive Data: Contains payment gateways, user data, order information, and business logic
  • Security: API keys, database connections, and admin functionalities are protected
  • Compliance: Maintains data privacy and food safety standards

What's Included Here?

  • βœ… Complete frontend implementation
  • βœ… Modern React architecture and patterns
  • βœ… Responsive UI/UX components and design
  • βœ… API integration structure and state management
  • βœ… Payment integration (frontend)
  • βœ… User authentication flow
  • βœ… Cart and order management system

What's Private?

  • πŸ”’ Backend API and database
  • πŸ”’ Admin panel and restaurant dashboard
  • πŸ”’ Payment processing logic and webhooks
  • πŸ”’ User data and order analytics
  • πŸ”’ Production deployment configurations
  • πŸ”’ Restaurant management system

🎨 Key Highlights

πŸ’» Development Skills Demonstrated

  • Modern React Patterns: Functional components, hooks, context API
  • Responsive Design: Mobile-first approach with CSS Grid and Flexbox
  • Performance Optimization: Code splitting, lazy loading, and optimized builds
  • API Integration: RESTful API consumption with error handling
  • State Management: Complex application state with React Context
  • Authentication: JWT-based user authentication and protected routes
  • Payment Integration: Stripe payment gateway implementation
  • SEO Optimization: Semantic HTML and meta tag management

🎯 Business Features

  • Complete E-commerce Flow: Browse β†’ Add to Cart β†’ Checkout β†’ Payment
  • User Management: Registration, login, profile management
  • Order Processing: Cart management to order completion
  • Search & Discovery: Food search, filtering, and categorization
  • Review System: Customer reviews and ratings
  • Favorites System: Save and manage favorite items
  • Order Tracking: Real-time order status updates

πŸ”§ Technical Features

  • Component Architecture: Modular, reusable component design
  • Custom Hooks: Reusable logic for data fetching and state management
  • Error Handling: Comprehensive error boundaries and user feedback
  • Loading States: Smooth loading experiences throughout the app
  • Form Validation: Client-side validation with user-friendly feedback
  • Toast Notifications: Real-time user feedback system

πŸ“± Live Demo

Note: As this is a production application, the live demo with backend functionality is not publicly accessible. This repository demonstrates the frontend implementation and development skills.

For live demo access or backend code review, please contact:

🀝 Contact & Support

Developer: Tabrez Rabbani

πŸ“„ License

This project is proprietary software. The source code is provided for portfolio demonstration purposes only.

All rights reserved. No part of this software may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the developer.

For licensing inquiries, please contact the developer.


⭐ If you're a recruiter or potential collaborator, I'd love to discuss this project and demonstrate the complete application including backend functionality in a private setting!

πŸš€ Future Enhancements

  • Real-time Order Tracking: WebSocket integration for live updates
  • Push Notifications: Browser notifications for order updates
  • Multi-language Support: Internationalization (i18n)
  • Dark Theme: Theme switching capability
  • Progressive Web App: PWA features for mobile experience
  • Advanced Filters: More sophisticated search and filtering options

About

Modern React.js food delivery platform with responsive design, real-time cart management, user authentication, and Stripe payment integration. Built with Vite for optimal performance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published