Home
Softono
React-Shopping-store-website

React-Shopping-store-website

Open source JavaScript
15
Stars
5
Forks
0
Issues
1
Watchers
3 months
Last Commit

About React-Shopping-store-website

React Shopping store website using API

Platforms

Web Self-hosted

Languages

JavaScript

React Shopping Store Website

A fully functional e-commerce frontend built with React. This project allows users to browse products, view details, and manage a shopping cart in a responsive and visually appealing interface.

πŸš€ Live Demo

View the live demo here

πŸ“ Folder Structure

React-Shopping-store-website/
β”œβ”€β”€ package.json
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ _redirects
β”‚   └── index.html
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ App.jsx
β”‚   β”œβ”€β”€ index.js
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ styles/
β”‚   β”‚   β”‚   β”œβ”€β”€ index.scss
β”‚   β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”‚   └── _shopCard.scss
β”‚   β”‚   β”‚   └── global/
β”‚   β”‚   β”‚       β”œβ”€β”€ _fonts.scss
β”‚   β”‚   β”‚       β”œβ”€β”€ _loader.scss
β”‚   β”‚   β”‚       β”œβ”€β”€ _reset.scss
β”‚   β”‚   β”‚       β”œβ”€β”€ _scrollbar.scss
β”‚   β”‚   β”‚       β”œβ”€β”€ _swal.scss
β”‚   β”‚   β”‚       └── _swiper.scss
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ common/
β”‚   β”‚   β”‚   β”œβ”€β”€ Loading.jsx
β”‚   β”‚   β”‚   └── Products.jsx
β”‚   β”‚   └── Layout/
β”‚   β”‚       β”œβ”€β”€ Header.js
β”‚   β”‚       └── index.js
β”‚   β”œβ”€β”€ contexts/
β”‚   β”‚   β”œβ”€β”€ CardContextProvider.js
β”‚   β”‚   └── ProductContextProvider.js
β”‚   β”œβ”€β”€ helper/
β”‚   β”‚   └── functions.js
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ product-details/
β”‚   β”‚   β”‚   β”œβ”€β”€ index.jsx
β”‚   β”‚   β”‚   └── components/
β”‚   β”‚   β”‚       β”œβ”€β”€ Banner.jsx
β”‚   β”‚   β”‚       β”œβ”€β”€ ProductDetailsSkeleton.jsx
β”‚   β”‚   β”‚       └── ProductInfo.jsx
β”‚   β”‚   β”œβ”€β”€ products/
β”‚   β”‚   β”‚   └── index.jsx
β”‚   β”‚   └── shopping-card/
β”‚   β”‚       β”œβ”€β”€ index.jsx
β”‚   β”‚       └── components/
β”‚   β”‚           β”œβ”€β”€ BackLink.jsx
β”‚   β”‚           β”œβ”€β”€ Card.jsx
β”‚   β”‚           β”œβ”€β”€ CartList.jsx
β”‚   β”‚           β”œβ”€β”€ EmptyCartState.jsx
β”‚   β”‚           β”œβ”€β”€ OrderSummary.jsx
β”‚   β”‚           β”œβ”€β”€ StatRow.jsx
β”‚   β”‚           └── SuccessCartState.jsx
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ getAllProducts.js
β”‚   β”‚   β”œβ”€β”€ getSingleProducts.js
β”‚   β”‚   └── http.js

πŸ–ΌοΈ Project Screenshots

Homepage Product Details Shopping Cart

πŸ“– Description

This React application consumes a product API and allows users to:

  • View a list of products
  • Inspect detailed information for each item
  • Add/remove products to/from a shopping cart
  • See a summary of cart totals

The app uses context providers for state management and makes HTTP requests through a centralized service module.

πŸ› οΈ Technologies

  • React (Functional components with hooks)
  • Context API for global state
  • SCSS & MUI for styling
  • Custom services for data fetching

πŸ“¦ Installation

npm install
npm start

✨ Contribution

Feel free to open issues or submit pull requests to improve the project.


Developed by Parham Abolghasemi