Create a shopping cart application The application must do the following: Provide the user and an admin a way to navigate to the various pages that they need to get to (see below actions). A User and an Admin should be able to see a list of products for sale User can add products to a shopping cart (We can hardcode the user, no need for Spring Security) A User can update quantities of a particular object in their shopping cart A user can remove items from the shopping cart (by either reducing their content to 0 or a remove button or link. A User can checkout by having a checkout button or link (which will turn a shopping cart into an order and associated order items). A user can view their shopping cart A user can view previous orders A user can view a particular order and see its order items. An Admin can add products (since there is no actual security, simply put admin functions behind the /admin url. An example might be /admin/products/new). An Admin can delete products An admin can update products An Admin can create new products An admin can add product types An admin can only delete product types which have not yet been assigned to a product. An admin can view all orders in the system. Use the H2 in Memory Database. Go ahead and pre-populate some of the database tables like Users, Products, Product Types, old Orders and associated order items. Use a simple web interface with either Thymeleaf or JSPs. It doesn’t have to be fancy or use sophisticated JavaScript.
Create a shopping cart application
The application must do the following:
Provide the user and an admin a way to navigate to the various pages that they need to get to (see below actions).
A User and an Admin should be able to see a list of products for sale
User can add products to a shopping cart (We can hardcode the user, no need for Spring Security)
A User can update quantities of a particular object in their shopping cart
A user can remove items from the shopping cart (by either reducing their content to 0 or a remove button or link.
A User can checkout by having a checkout button or link (which will turn a shopping cart into an order and associated order items).
A user can view their shopping cart
A user can view previous orders
A user can view a particular order and see its order items.
An Admin can add products (since there is no actual security, simply put admin functions behind the /admin url. An example might be /admin/products/new).
An Admin can delete products
An admin can update products
An Admin can create new products
An admin can add product types
An admin can only delete product types which have not yet been assigned to a product. An admin can view all orders in the system.
Use the H2 in Memory
Use a simple web interface with either Thymeleaf or JSPs. It doesn’t have to be fancy or use sophisticated JavaScript.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps