shopping-cart

GPL-3.0 License

Stars
1

React Shopping Cart Component

I've built a Shopping Cart Component with React.

Feel free to look at it, learn from it, improve it.

Also feel free to contact me


Table of Content


Installation

You need Node & npm.

If you cloned it from Github, go into the appropriate directory on your device, install the dependencies and run it:

cd folder-name
npm i
npm start

If you get some errors:

  • check if you are in the correct folder
  • check if you forgot something (e.g. start instead of npm start)
  • check if you misspelled something (e.g nmp strat instead of npm start)
  • check if you have Node & npm on your system (node -v and npm -v should show something like v10.9.0 or 6.4.0)
  • read the error message & search for it in the www
  • contact me

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -am 'Add your-feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Create a new Pull Request

License

Distributed under the GNU General Public License v3.0 license.


Contact


Todos & User Stories

  • Build A Static Version without State:

    • User can see a subtotal
    • User can see savings, if the order gets pickupped in a store
    • User can see a toolip for the pickup savings
    • User can see taxes
    • User can see a toolip for taxes
    • User can see a total
    • User can see a expander to show/hide item details
    • User can see a expander to show/hide promo codes input
  • Identify Where Your State Should Live

  • Add State:

    • App.js
    • OrderOverview.js
    • ItemDetails.js
    • PromoCode.js