Skip to content

Created a basic shopping app (MERN based), where maintaining some items with price, description and providing Add to Cart Button for each items, based on click we are adding items to cart and updating the count accordingly and based on items selections we are updating the selected item to back-end and retrieving the selected items on need.

Notifications You must be signed in to change notification settings

hemant110800/Redux-based-Shopping-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redux-based-Shopping-App

Created a basic shopping app (MERN based), where maintaining some items with price, description and providing Add to Cart Button for each items, based on click we are adding items to cart and updating the count accordingly and based on items selections we are updating the selected item to back-end and retrieving the selected items on need.

App is providing some Favourite Products list, where we can see product details with their price and description and have add to Cart Button, on top header we have My Cart Button which contains count value of total items present in cart.

For storing all cart values , success and failure notifications recieved based on card update and card reading api calls we are using React Redux Library where maintaining one cart slice for storing all cart related details , one ui slice for maintaining ui like notification state etc.

image

Functional Behaviour

1) Toggle Cart Details - User can see or hide cart details container onclick of My Cart Button from header

image

2) Add to Item - On click of Add to Item Btn we can add items to cart and parallely we are sending updated cart values to backend and based on success and failure response will show notification at UI end. Also in cart details container if we click on + button it will add items to cart and accordingly everything updates (Backend json, price , cart count etc)

image

image

3) Remove from Item - From Cart Details area we have - button , from there we can remove item or product from cart and accordingly redux store , backend all will update if only one item is present in cart it will remove item totally else it will reduce count by 1.

image

Tech Used

Front-end: React, React Hooks, Redux, JavaScript, HTML, CSS

Back-end: NodeJS, ExpressJS, Express Router, Basic GET POST APIs

Database : JSON files at back-end.

About

Created a basic shopping app (MERN based), where maintaining some items with price, description and providing Add to Cart Button for each items, based on click we are adding items to cart and updating the count accordingly and based on items selections we are updating the selected item to back-end and retrieving the selected items on need.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published