Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View Cart Page #3

Open
16 tasks
sandaiiyahh opened this issue Mar 2, 2021 · 0 comments
Open
16 tasks

View Cart Page #3

sandaiiyahh opened this issue Mar 2, 2021 · 0 comments
Assignees

Comments

@sandaiiyahh
Copy link
Contributor

sandaiiyahh commented Mar 2, 2021

Backend

Make API express routes
Get Cart

  • GET route api/userId/cart
  • User can view items in cart

Creating New Cart Item

  • POST route api/products/productId
  • Create new cart item

Update Cart Items

  • PUT route api/userId/cart
  • User can edit cart, updating the db

Delete Cart Items

  • DELETE route api/userId/cart
  • User can delete cart items

Frontend

Make Redux store

  • Create action type
  • Create action creator
  • Create action thunk
  • Create sub reducer

Make React Component

  • MapState & MapDispatch. Connect them.
  • Import store
  • Write JSX with state to render cart items
  • Have a "checkout" button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants