Node-based shopping app, which allows users to select more than on product and the quantity for each. At the start of the app, a list of available prodiucts with item ID, product name, and process is diplayed and a prompt appears asking the user to confirm they are ready to shop. If yes, app progresses to next step. if not then the app displays a message of disappointing.
Upon confirmation of "ready to shop", then a prompt is shown displaying item IDs to choose from and the quanity for that item. The user is then shown another prompt to confirm they are done shopping. If they user is not done, the shopping selection sequence repeats.
Once the user completes shopping, then a series of actions occur, which are automated. Make shopping experience more fluid to process all products at once instead of after each selection.
- Confirms the items selected are in stock
- if in stock, then adds up price * quantity otherwise, will send a message the item is not available and another message with existing total.
- then will update product stock in database
- once all the products have been checked and the total tallied, a final order total is displayed and the app ends by ending connection with database.