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
This project template was built with create-react-app, which provides a simple way to start React projects with no build configuration needed.
In the project directory, you can run:
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.
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!