Git Product home page Git Product logo

shopping-cart-react-testing's Introduction

Shopping Cart

Overview

  • 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.

Getting Started

1. Clone the repository and install the dependencies using NPM.

git clone https://github.com/melxincognito/shopping-cart-react-testing.git
cd shopping-cart
npm i

2. Run the app locally

npm start

3. Run all automated tests

npm test

4. View application locally

Open your browser to localhost:3000 to view the application locally

Dependencies

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

shopping-cart-react-testing's People

Contributors

melxincognito avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.