Stuff Store - React App

Overview

This repository contains the source code for a small React application named "Stuff Store." The app features product cards with the ability to add items to a shopping cart and view the cart contents. Added items are stored in local storage for persistent user sessions. The project utilizes React, styled components, TypeScript, and Material-UI.

Getting Started

To run the application locally, follow these steps:

  1. Clone the repository: git clone https://github.com/IrynaBondarenko7/stuff-store.git
  2. Navigate to the project directory: cd stuff-store
  3. Install dependencies: npm install
  4. Start the development server: npm start
  5. Open your browser and visit http://localhost:3000 to view the app.

Technologies Used

  • React: The main JavaScript library used for building the user interface.
  • Styled Components: Styling is done using the Styled Components library for a more modular and maintainable approach.
  • TypeScript: Adding static types for enhanced development and code quality.
  • Material-UI: Utilized for UI components, styling, and a cohesive design.

Features

  • Product Cards: Displaying various items with details like name, price, and an "Add to Cart" button.
  • Shopping Cart: Users can add products to the cart, and the cart icon updates with the total number of items.
  • Cart Preview: A dedicated page to view and manage the items in the shopping cart.
  • Local Storage: Added items persist between sessions thanks to local storage.

Folder Structure

The project follows a structured organization: stuff-store/ |-- src/ | |-- Cart/ | |-- CartItem/ | |-- Item/ | |-- App.tsx | |-- index.tsx |-- public/

Acknowledgments

Thank you for your interest in Stuff Store. I hope you enjoy using the application!