Build Production Ready REST API in Spring Boot - Expense App

Learn building production ready REST APIs in Spring Boot 3, JPA, Spring Security 6, JWT, MySQL and Deploy to AWS, Docker

  • 0.0 (0 Reviews)
  • 0 Students
  • 279 Lessons
  • Bushan Sirgur

Course Overview

Disclaimer: This course requires you to download the Docker desktop from Docker. If you are a Udemy Business user, please check with your employer before downloading the software.


Welcome to the World's Best Online Course for learn and building Production Ready REST API for Expense Manager API. There is a lot packed into this course, Let's see what's included in this course -


NOTE: I will be updating the course when there is any changes made in the newer versions of Spring Boot.


NEW UPDATES [16/08/2024]: Added New Videos on

- Integrate Java Mapstruct Mapping Library

- Creating different mappers for copying the values from one object to another

- Reduce the boiler plate code


NEW UPDATES [27/06/2024]: Added New Videos on

- Integrating the category module with Expense module

- Refactor the expense API endpoints to accept the category

- Refactor the expense filter APIs to show the category in the response


NEW UPDATES [25/06/2024]: Added New Videos on

- Added the new category module

- Changing the existing system design

- New API endpoints for managing the category module [Create, Read, Delete]

- Best practices and tips while coding


NEW UPDATES [29/04/2024]: Added New Videos on

- Upgrading to Spring Boot v3.2.5


NEW UPDATES [31/01/2023]: Added New Videos on

- Upgrading to Spring Boot v3.0.2

- Spring Security without using WebSecurityConfigurerAdpater


NEW UPDATES [25/07/2022]: Added New Videos on

- Create REST APIs with Spring Boot and MongoDB

- Create Simple Todo REST API with all the CRUD operations using MongoRepository

- Create finder methods using MongoRepository

- Connect Spring Boot Application to MongoDB Atlas (Production database)

- Deploy the Application to Heroku


NEW UPDATES [20/05/2022]: Added New Videos on

- Dockerize the Java Program

- Dockerize the Spring Boot Application

- Dockerize the Spring Boot Application with MySQL Database


What is Spring Boot?

Spring is one of the most popular framework for building Enterprise applications

Spring Boot is a tool to create Spring based applications quickly and easily with zero configuration.


What is Spring Data JPA?

Spring Data JPA is Java Persistence API for Object Mapping, Hibernate is the default implementation for JPA.


What is Spring Security?

Spring Security is separate project, created by spring team. We can use Spring Security to secure the application.


What is JWT?

JWT is a JSON Web Token, which is used to Secure the REST APIs using token based mechanism


We will start from absolute scratch -

  • Understanding the REST APIs/RESTful Web Service

  • Understanding the basics of Spring Boot such as, Spring Boot Starters, SpringBootApplication annotation, Spring Boot project structure

  • You will learn the different ways of creating Spring Boot project

  • You will learn to create the REST end points

  • You will connect Spring Boot application to MySQL database

  • You will learn to perform the database operations using Data JPA

  • You will learn validating the REST APIs

  • You will learn handling the exceptions, custom exceptions, global exceptions and many more

  • You will learn adding Pagination and Sorting to REST APIs

  • You will learn creating REST end points for Users

  • You will add Spring Security to the application

  • You will understand the Spring Security default configuration

  • You will learn configuring multiple users using In-memory authentication

  • You will learn creating custom user details and validate user against MySQL database

  • You will learn the Basic Authentication

  • You will create REST end point for Login

  • You will learn reading the records only for the logged in user

  • You will learn Mapping two entities using OneToMany annotation

  • You will learn using Lombok annotations

  • You will learn adding JWT to the application

  • You will JWT token based authentication

  • You will learn the advance features of Postman REST client

  • You will learn setup the automation script inside the Postman to test APIs

  • You will learn basic Git commands to push the code to Github repository

  • You will learn deploying the application to the Production server (Heroku)

  • You will learn dockerize the Spring Boot Application with MySQL database

See more

FAQ

FAQ area empty

Course curriculum

32 chương 279 bài học 22 giờ 11 phút 7 bài học thử miễn phí
Chương 1 Demo of the application and Source code
Chương 2 Basics of RESTful Web Services/REST API
Chương 3 Setting up the development environment
Chương 4 Basics of Spring Boot
Chương 5 Create REST end points for Expense Module
  • Create a REST end point for Expenses 5:24
  • Add all the dependencies to the application 4:26
  • Create database and table for Expense 5:09
  • Configure the datasource 3:19
  • Fetch the list of expenses from the Database 5:32
  • Write a code to fetch list of expenses from Database 9:19
  • Create database tables using JPA 4:58
  • Test the APIs in Postman and Organise the APIs in Postman 4:12
  • Run the project in command prompt using Maven 3:07
  • Add the base URL to the API 2:17
  • Challenge Time
  • Understand passing a parameter in the URL using Path Variable 3:55
  • Write a code to pass parameter in the URL using Path Variable 3:21
  • Understand passing a parameter in URL using Query strings 3:27
  • Write a code to pass parameter in the URL using Query strings 3:52
  • Retrieve the expense by its id from database 6:33
  • Challenge Time
  • Delete the expense by its id from database 4:36
  • Challenge Time
  • Map the HTTP request body to Java object 6:42
  • Save the expense details to the database 4:26
  • Challenge Time
  • Update the expense details to the database 4:13
  • Create a REST end point to update the expense details 9:50
  • Challenge Time
  • Save the timestamps to the database 7:07
  • Understanding the HTTP Response Status codes 3:50
  • Add the HTTP Response Status codes to all REST end points 4:47
  • Challenge Time
Chương 6 Adding Pagination and Sorting for Expenses Module
  • Understanding the Pagination and Sorting 4:02
  • Add pagination to the Expenses 7:12
  • Challenge Time
  • Add Sorting to the Expenses 3:41
  • Challenge Time
Chương 7 Handling Exceptions
  • Create a custom Exception for Expenses 4:52
  • Write a code for Creating Custom Exception 8:14
  • Refactor the code for Custom Exception 3:57
  • Challenge Time
  • Handle Bad Request Exception 3:09
  • Write a code for Handling Bad Request Exception 2:55
  • Challenge Time
  • Handle Internal Server Error Exception 2:00
  • Write a code for Handling Internal Server Error 2:53
  • Challenge Time
Chương 8 Add Validations to the REST APIs
  • Understanding the Hibernate Validator and its Annotations 3:23
  • Add validations to the Expense entity 0:58
  • Write a code for Adding validations to Expense entity 4:04
  • Customize the error response 5:45
  • Add validations to all other fields 5:28
  • Challenge Time
Chương 9 Filtering the Records
  • Development steps for filtering the expenses by category 4:02
  • Creating a REST end point for filtering the expenses by its category 8:05
  • Challenge Time
  • Development steps for filtering the expenses by its name 3:37
  • Creating a REST end point for filtering expenses by its name 6:46
  • Challenge Time
  • Development steps for filtering the expenses by its dates 5:35
  • Creating a REST end point for filtering the expenses by its dates 11:01
  • Challenge Time
Chương 10 Create REST end points for User module
  • Development steps for creating a new user 5:36
  • Write a code for creating a new user 16:21
  • Challenge Time
  • Add validations to the register api 5:36
  • Challenge Time
  • Create a custom exception for existing email 9:40
  • Challenge Time
  • Development steps for reading the user information 2:27
  • Create a REST end point to read user information 4:50
  • Challenge Time
  • Development steps for updating the user infomation 2:40
  • Create a REST end point to update the user information 7:38
  • Update the record to the database 1:46
  • Challenge Time
  • Development steps for deleting the user information 2:03
  • Create a REST end point to delete the user information 4:21
  • Challenge Time
Chương 11 Configure Spring Security to the Application
  • Add spring security to the application 6:17
  • Quick Update on WebSecurityConfigurerAdapter 1:50
  • Quick Update on Spring Security
  • Understand the spring security control flow 4:45
  • Development steps for customizing the HTTP requests 5:48
  • Write a code for customizing the HTTP requests 8:05
  • Development steps for customizing the multiple users 2:17
  • Write a code for customizing the multiple users 2:35
  • Development steps for customizing the users (Second approach) 2:02
  • Write a code for customizing the multiple users (Second approach) 4:41
  • Development steps for creating custom user details service 4:19
  • Write a code for creating custom user details 7:45
  • Encode the password using BCryptPasswordEncoder 5:50
  • Development steps for creating login REST end poing 3:11
  • Write a code for creating login REST end point 7:49
  • Challenge Time
Chương 12 Setup Mapping between Expenses and Users
  • Understanding the mapping between User and Expense 3:52
  • Write a code for mapping between Expense and User 3:17
  • Get the logged in user details 5:29
  • Add the user details to expense object just before saving to the database 5:06
  • Read all the expenses for logged in user 4:08
  • Read single expense for logged in user 5:24
  • Delete and Update expense for logged in user 3:06
  • Update the finder methods for logged in user 5:08
  • Update the REST end points for user module 7:19
Chương 13 Add JWT to the application
  • Overview of JWT and Its control flow 8:12
  • Development steps of adding JWT to the application 1:25
  • Refactor the Login API 8:58
  • Generate the JWT token 5:51
  • Update the Jwt util class 5:31
  • Create a custom filter 6:03
  • Validate the Jwt token 8:52
  • Register the custom filter inside the config file 7:48
Chương 14 Upgrading to Spring Boot 3.0.3
  • Update the Java version and Pom.xml 5:04
  • Fixing the Errors 2:39
  • Update the Web Security Configuration 6:07
  • Test the API 6:49
Chương 15 Upgrading to Spring Boot 3.2.5
  • Update the Spring Boot version to 3.2.5 7:35
  • Remove the deprecated methods and test the API 5:35
Chương 16 Advance features of Postman
  • Inheriting JWT token from Parent 7:21
  • Adding JWT token automatically to all requests 8:48
  • Finding the Postman documentation 0:39
Chương 17 Designing the category module
  • Understand the existing system desgin 2:54
  • Create new github branch 2:28
  • Create IO objects for category 3:46
  • Create JPA entity 5:14
  • Create JPA repository 3:14
  • Verify the tables in database 3:34
  • Create new category endpoint 3:05
  • Create finder methods for category 4:20
  • Convert entity object to DTO object 5:09
  • Complete the create category API 6:17
  • Test the create category API 4:44
  • Create read categories API 4:46
  • Create delete category API 5:43
  • Test the delete category API 3:27
  • [Tip] Add Javadocs 9:37
  • Testing the edge case scenario of category module 4:43
  • Handling exception for existing category 3:26
  • [Correction] Modify the method signature 1:56
Chương 18 Integrating category module with Expense module
  • Create IO objects for expense module 5:10
  • Create Expense DTO 2:05
  • Modify the controller for create expense API 7:16
  • Modify the expense entity class 1:47
  • Modify the service method 4:45
  • Create mapper methods 3:33
  • Test the API for create expense 5:47
  • Modify the expenses GET API 2:37
  • Test the read expenses API 2:47
  • Changes to delete and update the APIs 6:23
  • Changes to controller 6:33
  • Test all the APIs 10:10
  • Modify the API for filter by name 2:36
  • Test filter by name API 1:32
  • Modify the API for filter by date 2:23
  • Test the filter by date API 1:47
  • Modify filter by category API 9:23
  • Test filter by category API 2:58
  • Commit and push the changes to github repository 2:34
Chương 19 Refactor the Code
  • Introduction to Java Mapping Library 2:14
  • Different Java Mapping Library 2:26
  • Problems with BeanUtils 8:14
  • Configure Map struct Library 5:05
  • Fix the errors 3:25
  • Test the Map struct library 10:38
  • Continue with Mapping other objects [Part 1] 3:21
  • Continue with Mapping objects [Part 2] 7:15
  • Test the Expense Module 5:43
  • Create Category Mapper 3:46
  • Test the Category Module 7:08
Chương 20 IntelliJ IDEA New Plugin
  • Test the APIs from IntelliJ IDEA 8:46
Chương 21 Implement the Logout functionality
  • Create API endpoint for logout 12:50
  • Test the logout API 3:56
Chương 22 Deploying the application to Heroku
  • Heroku Update!
  • Create repository in Github and push the code 6:14
  • Create app inside heroku and provision the postgresql database 3:09
  • Deploy the app to Heroku 5:09
  • Test the production app 3:12
  • Connect to Heroku PostgreSQL database from Local machine 6:40
Chương 23 Deploying the application to AWS
  • Create RDS Service inside AWS 5:57
  • Connect to AWS MySQL database from MySQL workbench 3:20
  • Configure the datasource and create a executable Jar 2:33
  • Deploy the Spring Boot application to Elastic Beanstalk 6:00
Chương 24 Versioning the REST APIs
  • Using Context Path 4:45
  • Using the open REST end point 5:26
  • Deploy the application changes to AWS 7:09
Chương 25 Introduction to Docker
  • What is Docker? 5:33
  • Download and Install Docker 2:12
Chương 26 Dockerize the Java Program
  • Create Simple Java Program and Write the Dockerfile 6:21
  • Build the Docker image and Start the container 4:05
  • Removing the container and image 2:17
  • Push the Docker image to Docker hub 6:27
Chương 27 Dockerize the Spring Boot Application
  • Demo of the Spring Boot Application 3:46
  • Dockerize the Spring Boot Application 10:11
Chương 28 Dockerize Spring Boot application with MySQL database
  • Dockerize the REST API - Part 1 9:21
  • Dockerize the REST API - Part 2 7:31
  • Steps to Dockerize the Spring Boot application with MySQL database
Chương 29 Create REST API with Spring Boot and MongoDB (NoSQL database)
  • Create Spring Boot Project 5:42
  • Create model class and repository 4:53
  • Create a REST end point to retrieve all the documents 8:55
  • Create a REST end point to create new document 6:21
  • Create a REST end point to retrieve single document 5:22
  • Create a REST end point to update the existing document 7:00
  • Create a REST end point to delete the document 5:21
  • Configure validation 8:38
  • Create custom exception 5:07
  • Create service interface and service implementation 5:50
  • Refactor the controller for saving the document 6:25
  • Refactor retrieving the list of documents 4:55
  • Refactor retrieving the single document 6:07
  • Refactor updating the existing document 11:50
  • Refactor deleting the document 5:33
  • Setting up the production database 6:17
  • Connecting to MongoDB Atlas using MongoDB compass 4:39
  • Deploy the spring boot app to Heroku cloud 7:21
Chương 30 Spring Boot REST API Basics [Bonus Content]
  • Spring Boot few other concepts
  • Create Spring Boot Project 8:10
  • Create a Controller 11:25
  • Add dependencies to the spring boot project 3:40
  • Pass data from client to server using @PathVariable annotation 5:16
  • Pass data from client to server using @RequestParam annotation 6:36
  • Organize APIs in Postman 7:18
  • Map the JSON data to Java object 8:25
  • HTTP PUT method 4:21
  • Read property file values using @Value annotation 5:35
  • Change the server port 2:25
  • Create executable Jar 3:52
  • Jackson JsonIgnore and JsonProperty 4:14
  • Create Service 5:59
  • Change the Base URL 4:16
  • Create database and table 4:38
  • Configure the datasource 4:16
  • Create an Entity class 7:22
  • Fetch the records from database 9:15
  • Save the records to the database 5:45
  • Get a single record by its id 4:16
  • Delete a record from database 3:13
  • Update the record from the database 5:00
  • Create database tables by JPA 4:53
  • Create timestamps by JPA 6:05
  • Column annotation is mandatory? 2:11
  • Add validation to the REST API 8:54
  • Customize the validation message 8:41
  • NotNull vs NotEmpty vs NotBlank annotations 5:26
  • Change the HTTP status code 9:47
  • JPA query method or finder method Part 1 8:30
  • JPA query method or finder method Part 2 8:10
  • JPA query method or finder method Part 3 6:26
  • Data JPA Pagination 9:01
  • Data JPA Sorting 3:25
  • Data JPA Pagination and Sorting 3:31
  • JPQL select query in Data JPA 9:50
  • JPQL delete query in Data JPA 10:46
  • One to One mapping in Data JPA 12:23
  • Join query in Data JPA 8:49
  • JPQL Join query in Data JPA 3:15
  • One to Many mapping in Data JPA 9:53
  • One to One Bi-directional in Data JPA 7:24
  • One to Many Bi-directional in Data JPA 6:16
  • JPA Native SQL query 4:53
  • @NamedNativeQuery annotation 6:56
  • @NamedQuery annotation 5:06
  • Document APIs using Swagger 8:09
Chương 31 Written Articles on Spring Boot, Spring Security and Data JPA [Bonus Content]
  • Checkout the Spring Boot 100+ written articles
Chương 32 My contact details
  • Connect with me on social media

Requirment

  • Basics of Java

  • Basics of Spring MVC and Spring Boot

Outcomes

  • Learn building End-to-End Production Ready REST API

  • Build a complete Expense Manager REST API with Spring Boot, Spring Security, Data JPA, JWT and MySQL Database

  • Learn to create REST end points to perform Database operations

  • Learn how validate the REST APIs

  • Learn how to handle Exceptions and create Custom Exceptions

  • Learn how create Mapping between two Entities

  • One to One mapping

  • One to One Bi-directional mapping

  • One to Many mapping

  • One to Many Bi-directional mapping

  • Learn how to filter the records by writing JPA finder/query methods

  • Learn how to use Lombok

  • Learn how use Spring Security in Spring Boot application

  • Learn how to configure multiple Users using In-memory Authentication

  • Learn how to test REST APIs in Postman effectively

  • Learn how to use Postman advance features

  • Learn how to add Swagger for API Documentation

  • Learn how to add JWT token based Authentication to Spring Boot application

  • Learn how to deploy Spring Boot application to Heroku

  • Learn how to deploy Spring Boot application to AWS

  • Learn how to dockerize the Spring Boot Application with MySQL database

  • Learn how to Create REST API with Spring Boot and MongoDB database

  • Learn how to connect Spring Boot application with MongoDB database

  • Learn how to Perform the database (CRUD) operations with MongoRepository

  • Learn how to create finder methods using MongoRepository

  • Learn how to connect Spring Boot application with MongoDB Atlas (Production Server)

  • And many more...

Instructor

...
Bushan Sirgur

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all