Log In

Practical ASP.NET

  • We need you to build an online store
  • Prototype the frontend
  • Hook it up to the backend
  • Making it real (add a database)
  • Time to implement the shopping cart
    • Requirement - Add items to cart
    • Implement "Add to Cart" in the frontend
    • Create an API endpoint for adding items to a cart
    • Requirement - There can be only one cart per "session"
    • Store the sessionId in local storage (frontend)
    • Refactor AddToCart logic out of the controller
    • Ensure only one cart per session
    • Test adding to cart in the browser (and squash some bugs)
    • Requirement - Small tweaks to the UI
    • Visual feedback on Add
    • Practice Feature - Disable the button when clicked
    • Increment existing cart line quantity
    • Practice Feature - Adding more than one at a time
    • Upgrading to a later version of React.js
  • Viewing your cart and checking out
  • Checkout
  • Time to let our users log in

Time to implement the shopping cart

In this module...

Requirement - Add items to cart
Implement "Add to Cart" in the frontend
Create an API endpoint for adding items to a cart
Requirement - There can be only one cart per "session"
Store the sessionId in local storage (frontend)
Refactor AddToCart logic out of the controller
Ensure only one cart per session
Test adding to cart in the browser (and squash some bugs)
Requirement - Small tweaks to the UI
Visual feedback on Add
Practice Feature - Disable the button when clicked
Increment existing cart line quantity
Practice Feature - Adding more than one at a time
Upgrading to a later version of React.js