Shopping Cart application using Angular and Spring Boot
-
Start the
eureka-server
microservice which is used for service discovery and registration -
Start the
api-gateway
microservice -
Start the
productlist
microservice2.1. This microservice has
data.sql
to prepopulate products in the in-memoryH2
database2.2. This has only 1 rest endpoint to provide the list of product
-
Start the
cart
microservice3.1. This microservice has in-memory
H2
database to store the cart items and session Id3.2. This service provides CRUD operation depending upon whether the item or item quantity is added/removed from the cart
-
Start the
angular-shoppingcart
application usingng serve
4.1. This is the basic UI to list all the products and provide shopping cart functionality
4.2. If item is added or removed from the cart, a REST API call is made to
cart
service to update the cart