Challenge 03 - Shopping Cart!
About the challenge | Getting started | How to contribute | License | Author
In this challenge, you should create an application to train what you've learned so far in ReactJS
This will be an application where your main objective is to create a shopping cart hook. You will have access to two pages, a component and a hook to implement the features requested in this challenge:
- Add a new product to the cart;
- Remove a product from the cart;
- Change the quantity of a product in the cart;
- Calculation of sub-total and total cart prices;
- Stock validation;
- Display of error messages;
- Between others.
Below we will see in more detail what and how it needs to be done 🚀
Clone the project and access the folder
$ https://github.com/BootcampIgnite2021/challenge-03-shopping-cart.git && cd challenge-03-shopping-cart
Follow the steps below
# Install the dependencies
$ yarn
# Start the client
$ yarn start
# Start JSON Server
$ yarn server
# Execute tests
$ yarn test
Make a fork of this repository
# Fork using GitHub official command line
# If you don't have the GitHub CLI, use the web site to do that.
$ gh repo fork BootcampIgnite2021/challenge-03-shopping-cart
Follow the steps below
# Clone your fork
$ git clone your-fork-url && cd challenge-03-shopping-cart
# Create a branch with your feature
$ git checkout -b my-feature
# Make the commit with your changes
$ git commit -m 'feat: My new feature'
# Send the code to your remote branch
$ git push origin my-feature
After your pull request is merged, you can delete your branch
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by franciscojunior10 meu 👉 Linkedin