1meza / project2-backend

0 stars 0 forks source link

product pages + shopping #5

Open 1meza opened 2 months ago

1meza commented 2 months ago

Have the ability to add a product to a shopping cart. For this your group will need to find some existing (and its out there) shopping cart NodeJS + Express code that I will allow you to reuse to store in Session data a current shopping cart.

This is part of the work, to find and understand this work. Part of this project is to explain this code.

You should visually show the user that the product is added to the cart (think about how this is done in common shopping sites ---like the cart has a count of products in it that is increased and is displayed on the main navigation bar). (TIP: Read Boostrap docs examples)

shopping = will invoke NodeJS + Express to store the requested item for purchase in the NodeJS Sessions variable

1meza commented 2 months ago

Updated the shopping with invoking endpoint to save user chosen products to the express.js session in the backend. Made product pages so they add to cart is posting data to the backend endpoint.

Haven't gotten visual counter to work on the nav bar for the cart