GithubHelp home page GithubHelp logo

krzysu / reactjs-shopping-cart Goto Github PK

View Code? Open in Web Editor NEW
221.0 13.0 169.0 2.85 MB

example of shopping cart implemented in react.js and redux.js

Home Page: http://krzysu.github.io/reactjs-shopping-cart/

JavaScript 84.14% CSS 6.21% HTML 9.65%
reactjs redux shopping-cart ecommerce beginner-project beginner-friendly

reactjs-shopping-cart's Introduction

react.js shopping cart

example of shopping cart implemented in react.js and redux.js

for demo click here

getting started

install dependencies and start local dev server

npm install
npm start

details

  • build with create react app. Check their page for more details.
  • this example is using redux.js for application state management, to learn more about it I recommend this tutorial.
  • you can look under the hood directly from your browser using redux devtools. Install extension for your browser, open demo page (link above) and see how app state changes when you interact with it.
  • if you wonder why reducers, actions and selectors are all in one file inside folder called ducks, read more here.

TODO

  • add reducers and selectors unit tests

author: Kris Urbas @krzysu
licence: MIT

reactjs-shopping-cart's People

Contributors

dependabot-preview[bot] avatar krzysu avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reactjs-shopping-cart's Issues

Re-establishing the design

I would like to propose some changes to the project CSS, using Material UI and Tailwind CSS to re-establish the project CSS and change the design of the components.
I believe that using these frameworks will help us to improve the overall look and feel of the project, and make it more user-friendly. I am also confident that I can make these changes in a way that is compatible with the existing codebase.

Cart vulnerability

We cannot increase or decrease the number of a same item which we want to add in our cart. It is limited to only addition or deletion of a single product.
image

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • bootstrap ^3.4.1
  • prop-types ^15.8.1
  • react ^18.2.0
  • react-dom ^18.2.0
  • react-redux ^8.0.5
  • redux ^4.2.1
  • gh-pages ^5.0.0
  • react-scripts ^5.0.1
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

Migrate from create react app to vite

I want to migrate the website from cra to vite as it is more efficient and fast. It will enhance the speed of website and make it more light weight. Please assign this issue to me.

How to force the selected products from cart component info ?

Hello ,
Trying to do some modifications to this to include a search and pagination with https://github.com/AdeleD/react-paginate
but having some problems http://recordit.co/HXqQ20roh1

If I'm adding items to the cart and start a search the products lose the .added state which I guess it's expected ?
I thought maybe to keep the state in localStorage and set the added state based on that but not sure how it would be possible?

What would be the best way to remember the added state between searches and paginated results ?

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.