Skip to content

This project is an SPA developed with React and React Router, facilitating product browsing, details viewing, and shopping cart management via the Fake Store API. With concise component design and efficient routing, it provides users a seamless experience for exploring and purchasing products.

Notifications You must be signed in to change notification settings

iamrudhresh/FakeStore-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single-Page E-Commerce Application

This project is an SPA developed with React and React Router, facilitating product browsing, details viewing, and shopping cart management via the Fake Store API. With concise component design and efficient routing, it provides users a seamless experience for exploring and purchasing products.

Technologies Used

  • React
  • React Router
  • Tailwind CSS (for styling)

Features Implemented

1. Fetch Product Data

  • Utilized Axios to fetch product data from the provided API endpoint.

2. Display Products

  • Created components to display products in a grid format.
  • Each product component includes relevant information such as name, price, and image.

3. Pagination or Infinite Scrolling

  • Implemented infinite scrolling to load products dynamically as the user scrolls.
  • Enhanced user experience and performance for large product catalogs.

4. Product Details Page

  • Developed a separate product details page/component to display comprehensive information about each product.
  • Includes details like description, specifications, and reviews.

5. Shopping Cart Functionality

  • Implemented a shopping cart component that allows users to add and remove products.
  • Utilized React state management to maintain the cart state across components.

6. Search Functionality

  • Implemented a search component that enables users to search for products by name or description.
  • Product list filters dynamically based on the search query entered by the user.

Installation

To run the this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/bsrakts/adolfha-ecommerce.git
  1. Change to the project directory:
cd FakeStore-Project
  1. Install the dependencies:
npm install
  1. To start the development server and run the project, execute the following command:
npm start

This will start the application on your local machine, and you can access it in your web browser at http://localhost:3000.

Project Directory Structure

public/
├── index.html
├── manifest.json
└── robots.txt
src/
├── components/
│ ├── Cart.js
│ ├── Item.js
│ ├── LoadingScreen.js
│ └── Navbar.jsx
├── helpers/
│ └── apiClient.js
├── pages/
│ ├── Details.jsx
│ ├── Home.jsx
├── App.css
├── App.js
├── App.test.js
├── index.css
├── index.js
├── logo.svg
├── reportWebVitals.js
└── setupTests.js

Dependencies

This project relies on the following dependencies:

About

This project is an SPA developed with React and React Router, facilitating product browsing, details viewing, and shopping cart management via the Fake Store API. With concise component design and efficient routing, it provides users a seamless experience for exploring and purchasing products.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published