Skip to content

Gadget Haven is a React-based web application that allows users to browse and manage a collection of gadgets. It features reusable components, state management with useState and useEffect, and global state handling via Context API.

Notifications You must be signed in to change notification settings

alazim-star/b10a8-gadget-heaven

Repository files navigation

🚀 Gadget Haven

Gadget Haven
A modern React-based e-commerce platform that lets users browse, select, and manage their favorite gadgets with an interactive cart and wishlist system.

📌 Features

Fantasy Gadget Selection – Users can browse and select products with detail handling.
Dynamic Cart & Wishlist – Add/remove items, with real-time updates displayed.
Sort Functionality – Sort items by price for better visibility of high-value products.
Modal Purchase Confirmation – Displays a confirmation popup with the total amount.
Persistent Data Storage – Keeps cart & wishlist selections saved via local storage.

📚 React Concepts Used

  • Components – Structured project using reusable components.
  • Props – Passed dynamic data between components.
  • State Management (useState) – Managed UI state effectively.
  • Side Effects (useEffect) – Loaded data dynamically.
  • Conditional Rendering – Displayed different views based on state.

🛠️ Technologies Used

  • React.js – Component-based UI with state management.
  • Context API – Global state handling for cart and wishlist.
  • Tailwind CSS – Sleek, responsive UI styling.
  • DaisyUI – Pre-styled Tailwind components for an enhanced UI.
  • Local Storage – Saves user selections for persistence.
  • Vite – Fast development server & build tool.

📦 Dependencies

🔹 Main Dependencies

Package Version
react ^18.3.1
react-dom ^18.3.1
react-router-dom ^6.27.0
react-icons ^5.3.0
react-toastify ^10.0.6
recharts ^2.13.3
react-tabs ^6.0.2
localforage ^1.10.0
match-sorter ^7.0.0
sort-by ^1.2.0

🔹 Development Dependencies

Package Version
vite ^5.4.10
@vitejs/plugin-react ^4.3.3
eslint ^9.13.0
eslint-plugin-react ^7.37.2
eslint-plugin-react-hooks ^5.0.0
postcss ^8.4.47
autoprefixer ^10.4.20
tailwindcss ^3.4.14
daisyui ^4.12.14

📸 Screenshots

Gadget Haven Screenshot 1 Gadget Haven Screenshot 2

🚀 Live Demo

🔗 Live Website: Gadget Haven

📂 Project Setup

# Clone the repository
git clone https://github.com/programming-hero-web-course2/b10a8-gadget-heaven-alazim-star.git

# Navigate to the project directory
cd gadget-haven

# Install dependencies
npm install

# Start the development server
npm run dev

About

Gadget Haven is a React-based web application that allows users to browse and manage a collection of gadgets. It features reusable components, state management with useState and useEffect, and global state handling via Context API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published