Ana Sayfa / Kod ve Scriptler / Aroma Drips - React Drinks Ordering Template

Aroma Drips - React Drinks Ordering Template

Müşterilerinizi içecek menünüze hayran bırakan, şık ve şimşek hızında bir sipariş sistemi; güvenilir

  • Yayın tarihi30 Haziran 2025
  • Son güncelleme30 Haziran 2025
  • Canlı demoVar
Aroma Drips - React Drinks Ordering Template

Overview

AromaDrips Documentation

Overview

AromaDrips is a modern web application built with React, TypeScript, and Vite, designed for an e-commerce platform specializing in beverage products such as coffee, milkshakes, frappes, mojitos, breezers, and smoothies. The application includes features like user authentication, product browsing, cart management, order history, and a theme provider for UI customization. It leverages modern libraries and tools to ensure a robust, accessible, and performant user experience. This documentation provides a detailed guide to the project structure, dependencies, setup instructions, and key components of the application.

Table of Contents

  1. Project Setup
  2. Dependencies
  3. Project Structure
  4. Key Components and Files
  5. Features
  6. Running the Application
  7. Building for Production
  8. Linting and Code Quality
  9. Accessibility
  10. Internationalization
  11. State Management
  12. Styling
  13. Future Enhancements

Project Setup

The project is initialized as a Vite-based React application with TypeScript support. The package.json file defines the project configuration, scripts, and dependencies.

  • Name: aromadrips
  • Private: true (indicating the project is not published to npm)
  • Version: 0.0.0
  • Type: module (uses ES modules)
  • Scripts:
    • dev: Runs the development server using vite.
    • build: Compiles TypeScript and builds the production bundle using tsc -b && vite build.
    • lint: Runs ESLint to check code quality with eslint ..
    • preview: Previews the production build using vite preview.

Dependencies

Production Dependencies

The application uses a variety of libraries to support its functionality:

  • @guidepup/guidepup (^0.24.0): Tools for accessibility testing.
  • @guidepup/virtual-screen-reader (^0.32.0): Virtual screen reader for testing accessibility.
  • @radix-ui/react-slot (^1.1.1): Utility for composing React components.
  • @reduxjs/toolkit (^2.7.0): State management library for Redux.
  • @tanstack/react-query (^5.64.1): Data fetching and caching library.
  • @tanstack/react-query-devtools (^5.64.1): Debugging tools for React Query.
  • @types/react-joyride (^2.0.2): Type definitions for React Joyride.
  • class-variance-authority (^0.7.1): Utility for managing CSS class variants.
  • clsx (^2.1.1): Utility for conditionally joining class names.
  • embla-carousel-autoplay (^8.5.2): Autoplay plugin for Embla Carousel.
  • embla-carousel-react (^8.5.2): React component for Embla Carousel.
  • framer-motion (^11.18.0): Animation library for React.
  • i18next (^24.2.1): Internationalization framework.
  • i18next-browser-languagedetector (^8.0.2): Language detection for i18next.
  • i18next-http-backend (^3.0.1): Backend for l

Features

Features

  • Authentication: Supports user sign-in and sign-up (SignIn and SignUp components).
  • Protected Routes: Uses ProtectedRoute to restrict access to authenticated users.
  • Product Browsing: Dedicated components for various product categories (e.g., CoffeProducts, MilkShakeProducts).
  • Cart and Order Management: Includes Cart and OrderHistory pages.
  • Search: Provides a SearchPage for finding products.
  • User Profile: Allows users to view and manage their profile (Profile component).
  • ###strong/strong###: Uses for light/dark mode support.
  • Notifications: Uses react-hot-toast for toast notifications.
  • Accessibility: Integrates @guidepup libraries for accessibility testing.
  • Animations: Uses framer-motion and tailwindcss-animate for UI animations.
  • State Management: Uses Redux (@reduxjs/toolkit, react-redux) with persistence (redux-persist).
  • Data Fetching: Uses @tanstack/react-query for efficient data fetching and caching.
  • Onboarding: Uses react-joyride for guided tours.

Requirements

  • Framework: React + TypeScript
  • Styling: Tailwind CSS + tailwind-merge
  • State Management: Redux Toolkit + React Query
  • Routing: React Router DOM
  • Animations: Framer Motion
  • Internationalization: i18next