Skip to content

A React-based shopping cart application built using Redux and Redux-Saga for state and asynchronous data handling, along with React Router for navigation.

License

Notifications You must be signed in to change notification settings

PAIshanMadusha/redux-saga-reactjs-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

React.js Logo

πŸ›’ Shopping Cart Application

BUILT WITH REACT.JS, REDUX & REDUX-SAGA FOR STATE MANAGEMENT AND ASYNCHRONOUS DATA HANDLING

Redux-SagaΒ  Redux.jsΒ 

DEPLOYED ON VERCEL VIA GITHUB

Vercel


A React-based product listing and shopping cart application built using Redux and Redux-Saga for state management and asynchronous data handling, along with React Router for navigation. The app features a clean, responsive UI, dynamic product fetching from the Fake Store API, and seamless cart management. The application is deployed on Vercel.

πŸš€ Features

  • Fetch products from Fake Store API using Redux-Saga
  • Add, remove, or clear products from the cart
  • Shows total, discount, and tax dynamically
  • Spinner displayed while fetching products
  • Responsive product grid with uniform card sizes
  • The header displays live cart count
  • Simple and clean footer with developer info
  • Fully front-end project, deployable as static site

πŸ› οΈ Tech Stack

The following technologies are used in this project:

Layer Technology / Tools Description
Front-end React, Redux, Redux-Saga, React Router Used for building the UI, managing state, handling async operations, and navigation between pages.
Styling CSS (Flexbox & Grid) Provides responsive and clean layout design across all components.
API Fake Store API Source of product data for fetching and displaying dynamic product listings.
Deployment Vercel (Free) Used to deploy the application with continuous integration from GitHub.

πŸ“ Project Structure

The following project structure is used in this project:

redux-saga-reactjs-app/
β”œβ”€β”€ node_modules/                 # Installed dependencies
β”œβ”€β”€ public/                       # Static assets (index.html, images, favicon, etc.)
β”œβ”€β”€ src/                          
β”‚   β”œβ”€β”€ components/               # UI components
β”‚   β”‚   β”œβ”€β”€ header.js
β”‚   β”‚   β”œβ”€β”€ footer.js
β”‚   β”‚   β”œβ”€β”€ main.js
β”‚   β”‚   └── cart.js
β”‚   β”œβ”€β”€ redux/                    # Redux logic (actions, reducers, sagas, store)
β”‚   β”‚   β”œβ”€β”€ cart/                 
β”‚   β”‚   β”‚   β”œβ”€β”€ cartAction.js
β”‚   β”‚   β”‚   └── cartReducer.js
β”‚   β”‚   β”œβ”€β”€ product/
β”‚   β”‚   β”‚   β”œβ”€β”€ productAction.js
β”‚   β”‚   β”‚   β”œβ”€β”€ productReducer.js
β”‚   β”‚   β”‚   └── productSaga.js
β”‚   β”‚   β”œβ”€β”€ constants.js          # Shared action types/constants
β”‚   β”‚   β”œβ”€β”€ rootReducer.js        # Combines all reducers
β”‚   β”‚   └── store.js              # Creates Redux store & applies saga middleware
β”‚   β”œβ”€β”€ App.css                   # Global styles
β”‚   β”œβ”€β”€ App.js                    # Root component
β”‚   └── index.js                  # Entry point (ReactDOM.render + Provider setup)
β”œβ”€β”€ .gitignore                    # Files and folders to ignore in Git
β”œβ”€β”€ LICENSE                       # License information (if added)
β”œβ”€β”€ package.json                  # Project metadata & dependencies
└── README.md                     # Documentation

πŸ“¦ Getting Started

Follow the steps below to set up and run the project successfully:

1. βœ… Clone the Repository:

git clone https://github.com/PAIshanMadusha/redux-saga-reactjs-app.git

2. βœ… Navigate to the Project Directory:

cd redux-saga-reactjs-app

3. βœ… Install Dependencies:

npm install

4. βœ… Run the App Locally:

npm start

5. ⚑ Successful Startup Output:

If everything is configured properly, your terminal should display something like this:

webpack compiled successfully

The app runs on: http://localhost:3000

6. βœ… Build for Production:

npm run build

πŸ“Έ System Screenshots

These screenshots illustrate how the system appears on desktop:


Screenshot 1

Screenshot 3


❀️ Created by:

Ishan Madhusha
GitHub: PAIshanMadusha

Feel free to explore my work and get in touch if you'd like to collaborate! πŸš€


πŸ“ License

This project is licensed under the MIT License : See the LICENSE file for details.

About

A React-based shopping cart application built using Redux and Redux-Saga for state and asynchronous data handling, along with React Router for navigation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published