Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

48 lines (27 loc) · 1.43 KB

This is an example of Shopping Cart with discount feature added using Redux

A fruit shopping cart is taken as an example.

The cart can contain any item multiple times until the inventory (100 of each) is empty for the chosen product

The receipt will display:

• the shopping list with a subtotal

• the list of discounts by item

• the total after discount

Items are priced as follows (showing discount when available):

• Apples are 60 cents each

• Oranges are 25 cents each

Discounts are as follows(when available):

• Apples are Buy 1 Get 1 free

• Oranges are Buy 2 Get 1 free

Redux Shopping cart Example

This project template was built with create-react-app, which provides a simple way to start React projects with no build configuration needed.

Available Scripts

In the project directory, you can run:

npm start or yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any errors in the console.

npm run build or yarn run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!