This device is not compatible.
You will learn to:
Implement Spring Boot entities.
Create microservices using Spring Boot.
Implement the Spring Security.
Implement the OAuth2 Security.
Skills
Web API
Java Event Handling
Web Development
Prerequisites
Basic knowledge of Thymeleaf
Basic Knowledge of Google Cloud Platform
Intermediate Knowledge of Spring Boot
Technologies
Java
Thymeleaf
Spring Boot
Project Description
In this project, we'll build a microservices architecture application using Spring Boot and Thymeleaf to create an inventory and shopping cart system with OAuth authentication. Microservices allow independent development and deployment of loosely coupled services, making applications more scalable and maintainable. We'll implement a complete full-stack Java application with Spring Boot handling the backend REST APIs and Thymeleaf templates rendering the server-side frontend in a multi-page application architecture.
We'll start by creating JPA entities for items, users, and cart items, then build Spring Data repositories for database operations using the repository pattern. Next, we'll develop an inventory service with business logic for adding items to inventory, managing the shopping cart, and removing items. We'll implement Spring controllers to handle navigation and HTTP requests, mapping POST and DELETE operations for cart functionality. Then we'll configure OAuth 2.0 authentication with secure credentials and integrate OAuth login flows into the controller layer for user authorization.
Finally, we'll create Thymeleaf HTML templates for the frontend interface, build the application into an executable JAR file, and launch the complete microservice. By the end, you'll have a working e-commerce system demonstrating Spring Boot microservices, OAuth security, JPA entity mapping, Spring Data repositories, Thymeleaf server-side rendering, and RESTful API design applicable to any enterprise Java application.
Project Tasks
1
Getting Started
Task 0: Introduction
2
Building Blocks
Task 1: Create the Item Entity
Task 2: Create the Repository for the Item Entity
Task 3: Create the User Class
Task 4: Create the Repository for the User Class
Task 5: Create the CartItem Class
Task 6: Create a Cart for the Inventory
3
Functional Components
Task 7: Create an Inventory Service
Task 8: Add More to the Service
Task 9: Add the Remove Functionality in the Cart
4
OAuth Authentication
Task 10: Add Credentials for OAuth
Task 11: Handle the OAuth Authentication in the Controller
5
Cart Functional Components
Task 12: Add POST and DELETE Map
Task 13: Add Elements to the Front End
6
Run the Application
Task 14: Build and Execute the Jar
Congratulations!
Subscribe to project updates
Atabek BEKENOV
Senior Software Engineer
Pradip Pariyar
Senior Software Engineer
Renzo Scriber
Senior Software Engineer
Vasiliki Nikolaidi
Senior Software Engineer
Juan Carlos Valerio Arrieta
Senior Software Engineer
Relevant Courses
Use the following content to review prerequisites or explore specific concepts in detail.