Welcome to our Grocery React App! This cutting-edge e-commerce platform is crafted using React and Vite, leveraging a robust set of dependencies to deliver an exceptional shopping experience. Our app combines modern web technologies with user-centric design to create a seamless, efficient, and enjoyable online grocery shopping journey.
Key Features:
- Responsive and intuitive user interface
- Fast performance with Vite's build optimization
- Comprehensive product catalog with easy navigation
- Secure user authentication and profile management
- Real-time inventory updates and availability checks
- Smooth checkout process with multiple payment options
- Order tracking and history for user convenience
Whether you're a busy professional, a health-conscious shopper, or simply looking for a convenient way to stock your pantry, our Grocery React App is designed to meet your needs with style and efficiency.
-
@headlessui/react (v2.1.3): Used for accessible UI components, particularly in the
CategoriesTag.jsx
file for the Dialog component. -
@hookform/resolvers (v3.9.0) and react-hook-form (v7.53.0): Employed for form handling and validation throughout the application.
-
axios (v1.7.7): Utilized for making HTTP requests to backend services.
-
class-variance-authority (v0.7.0) and clsx (v2.1.1): Used for dynamic class name generation, enhancing the flexibility of component styling.
-
embla-carousel-react (v8.2.1): Implemented for creating responsive and touch-friendly carousels,
image-slider.jsx
&product-slider.jsx
. -
framer-motion (v11.5.4): Used for smooth animations and transitions to enhance user interface interactions.
-
lucide-react (v0.438.0) and react-icons (v5.3.0): Icons library.
-
react (v18.3.1) and react-dom (v18.3.1): Core libraries for building the user interface.
-
react-router-dom (v6.26.1): Used for handling routing in the application, as evident in the
CategoriesTag.jsx
file whereuseParams
anduseSearchParams
are employed. -
tailwind-merge (v2.5.2) and tailwindcss-animate (v1.0.7): Utilized for advanced Tailwind CSS usage, including merging classes and adding animations.
-
zod (v3.23.8): Used for schema validation with react-hook-form.
-
query-string (v9.1.0): Used in the search input component for searching products, providing efficient parsing and stringifying of URL query strings.
The project uses React Router for navigation. An example of proper file routing can be seen in src/screen/CategoriesTag.jsx
, where useParams
and useSearchParams
are used to handle dynamic routing and query parameters.
To run this project locally:
- Clone the repository
- Install dependencies with
npm install
- Start the development server with
npm run dev
This will start the Vite development server with Hot Module Replacement (HMR) for a smooth development experience.