This is an example of a full-stack web application written in Java.
- Customers can browse through various products, which are sorted into categories.
- Customers can add products to their shopping cart. The number of items in the cart is visible on every page.
- Customers are able to view the items and quantities currently in their cart.
- Customers can adjust item quantities or remove items from their carts altogether on the shopping cart page via AJAX, so the page never reloads.
- Admins can "log in" (mock authentication) using cookies.
- Admins can create new categories and products, complete with image uploads.
This app uses the following technologies:
Spring
as a container for dependency injectionSpring Boot
for a batteries-included preconfigured serverSpring MVC
for request routingThymeleaf
for templatingSpring Data JPA
for interacting with a databaseCSS3/Grid/Flexbox
for layout and aestheticsJavaScript/ES6/AJAX
for a smooth user experience
- Clean up CSS on /admin page
- Allow users to place their orders, removing them from the cart
- Allow users to view previous orders
- Display recently purchased items as suggestions on the cart page so users can add those items from that page right before they place their orders
- Add multiple images to represent each Product, with the ability to rotate through them on the product page
- Creating and submitting FormData in JavaScript
- Sending data using JavaScript's
encodeURIComponent()
and template literals - HTML generation using template literals