- Creating a shopping cart to practice creating applications in React using Test Driven Development. This project would usually be quick to create but I'm running automated tests with Jest as I go along.
- The application will consist of two landing pages and a shopping cart that is shown as an expandable drawer on the right side of the screen. The first landing page is a simple home screen with images while the second landing page is a shopping page where users can scroll through the products. Each product will display an image, a title, a price and a button that gives the user the ability to add an item to their cart. The application doesn't have a backend so these items are saved into a users localStorage.
- In a users shopping cart they'll see each item they have recently added along with the total for their cart items. Users can also increase the quantity of an item in their cart. They also have the ability to clear all items from their cart at the click of a button.
git clone https://github.com/melxincognito/shopping-cart-react-testing.git
cd shopping-cart
npm i
npm start
npm test
Open your browser to localhost:3000 to view the application locally
Dependencies List:
- @testing-library/jest-dom
- @testing-library/react
- @testing-library/user-event
- react 18.1.0
- react-dom 18.1.0
- react-router-dom 6.3.0
- @mui/material
- @emotion/react
- @emotion/styled
- @mui/system
- @mui/icons-material