Build RESTFUL APIs using Kotlin and Spring Boot
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English (US) | Size: 3.35 GB | Duration: 8h 22m
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English (US) | Size: 3.35 GB | Duration: 8h 22m
A complete hands on approach to learn the Kotlin language and build Restful APIs using Kotlin SpringBoot.
What you'll learn
Kotlin Programming Language and its benefits
Write Code using Kotlin Programming Language
Building Applications using Kotlin
Build RestFul Services using SpringBoot and Kotlin
Test Kotlin using JUnit5
Kotlin and Java Interoperability
Integrate Spring Data JPA with Kotlin
Integration testing DB Layer using TestContainers & JUnit5
Unit Testing Functions calls using Mockk Library
Requirements
Java 11 or Higher is Required
Experience working with any IDE( Intellij, Eclipse)
Experience working with Java
Experience building application using SpringBoot
Gradle or Maven Build tool Experience is must
Description
Kotlin is the Modern, concise and safe programming language and is one of the popular JVM language in this day and age.It’s also interoperable with Java and other languages, and provides many ways to reuse code between multiple platforms for productive programming.This course will focus on using Kotlin for Server-Side Development using SpringBoot framework. This is a pure hands-on oriented course which covers these two topics:Covers Kotlin Fundamentals thats necessary for Java DevelopersBuild RestFul APIs using SpringBoot and KotlinSection 1: Getting Started With the CourseThis section covers the course objectives and the prerequisites that are needed to make the most out of this course.Section 2: Getting Started with Kotlin Programming LanguageIn this section, I will introduce you to Kotlin Programming Language and why its a powerful language for enterprise development.Introduction to KotlinHow Kotlin Works with the JVM?Section 3: Kotlin FundamentalsIn this section, we will explore the fundamentals of Kotlin.val & var variables in KotlinBasic Types - Int, Long, Double, StringConditionals - If and when blockRanges , Loops while & do-Whilebreak, labels and returnSection 4: Functions in KotlinIn this section, we will learn about functions in Kotlin and different ways of declaring and using themDefining and Invoking Functions Default Value Parameters & Named ArgumentsTop-Level Functions and Top-level PropertiesSection 5: Classes, Interfaces and InheritanceIn this section, we will learn about classes, inheritance and interfaces in detail.Introduction to class - Creating a class and objectsPrimary ConstructorsSecondary Constructorsinitializer code using init blockData ClassesCustom Getters and Setters Inheritance - Extending ClassesInheritance - Override Functions, Variablesobject keyword for creating instance of the classcompanion object KeywordInterfacesInterfaces - Handling Conflicting FunctionsInterfaces - Defining and Overrding VariablesVisibility ModifiersType Checking, Casting and Smart CastEnum classSection 6: Nulls in KotlinIn this section, we will learn about handling nulls in KotlinNullable & Non-Nullable types in KotlinSafe Call(?) , Elvis Operator(?:) & Non Null Assertion(!!) to deal with Null ValuesInvoking or assigning a Nullable Type to a Non-Nullable TypeSection 7: Collections, Arrays & Lamda ExpressionsIn this section, I will introduce you to collections, arrays and lambda expressions in KotlinIntroduction to CollectionsIntroduction to Lamda ExpressionsLambdas and Higher Order FunctionsFilter Operations on Kotlin CollectionsMap Operations on Kotlin CollectionsFlatMap Operations in CollectionsWorking With HashMapsLazy Evaluation of Collections using SequencesNullability in CollectionsSection 8 : Exceptions In KotlinIn this section, I will cover the exceptions in kotlin and the techniques to handle them.Handling Exceptions using try-catchSection 9 : Scope FunctionsIn this section, I will introduce you all to scope functions in Kotlin and its usage.Introduction to Scope Functionsapply & also Scope Functionlet Scope Functionwith & run Scope FunctionSection 10 : Getting Started with Kotlin and Spring BootIn this section, I will explain the overview of the app we are going to build and build a very simple API.Overview of the app & Project SetupBuild a Simple Endpoint - Greeting ControllerConstructor Injection in SpringSetting up different profiles in Spring BootSet up Logging in KotlinSection 11 : Integration/Unit Testing using Junit 5In this section, I will code and explain about the techniques to write different types of test cases using spring boot and Kotlin.Introduction to Automated Tests & Setting up JUnit5Integration Test for ControllerUnit Test for Controller - Using the Mockk Mocking librarySection 12 : Build the Course Catalog ServiceIn this section, we will build the Course Catalog Service to manage the CoursesSet up the Course Entity & CourseDTOCreate CourseRepository & Configure JPA in application.yml fileBuild the POST Endpoint for adding new Course Integration test for the POST endpoint using JUnit5Build the Get Endpoint to retrieve all CoursesIntegration test for the GET endpoint to retrieve all the coursesBuild the Update Endpoint to update a CourseIntegration test for the PUT endpoint using JUnit5Build the DELETE endpoint to delete a CourseSection 13: Unit Testing Controller layer (Web Tier)In this section, we will code and learn about how to write unit tests for the controllerSetting up the Unit Test for the CourseControllerUnit test for the Post Endpoint in CourseControllerUnit test for the GET Endpoint in CourseControllerUnit test for the PUT Endpoint in CourseControllerUnit test for the DELETE Endpoint in CourseControllerSection 14 : Bean Validation using Validators and ControllerAdviceIn this section, we will code and learn the different techniques to apply bean validations and handle exceptions using the ControllerAdvice PatternName and Category as Mandatory using @NotBlank AnnotationImplement Custom Error Handling using ControllerAdvice patternHandle Global RuntimeException using ControllerAdvice PatternSection 15 : Custom JPA queries using Spring Data JPA and DB Layer testing using @DataJpaTestIn this lecture, we will learn about the techniques to write custom JPA queries and the techniques to test the DB layer using the DataJpaTestRetrieve Courses By Name using JPA Query Creation FunctionRetrieve Courses By Name using Native SQL queryTesting Mutliple sets of Data using @Parameterized testSection 16: GET Endpoint to retrieve Courses By Name using @RequestParamIn this section, we will code and learn about the usage of RequestParam in the controller endpoint.Use existing GET endpoint to retrieve Courses by NameWrite Integration test to retrieve course by NameSection 17 : Entity RelationShips using Spring Data JPAIn this section, I will explain the technique to express the relationships in JPA using Entity and Data classes in KotlinAdding Instructor Entity in to the Course Catalog ServiceAdding the relationship in the Entity ClassInstructor Controller to Manage Instructor DataUpdate CourseService to validate Instructor DataFix the CourseController Integration TestsFix the CourseController Unit TestsSection 18 : Integrating with Postgres DBIn this section, we will code and learn to integrate the postgres DB in to the course catalog service.Setting up the Postgres DB and App to interact with PostgresTest the app with Postgres DBSection 19 : Integration Testing using TestContainersIn this section, we will code and learn to integrate the testcontainers to run integration test.Setting Up TestContainers for the Integration TestConfigure @DataJpaTest with TestContainersSection 20 : Java & Kotlin InteroperabilityIn this section, we will code and learn about the interoperability between Java and Kotlin.Invoking Kotlin Code from Java ClassInvoking Java Code from KotlinUseful JVM annotations in KotlinBy the end of this course, you will be comfortable writing code using the Koltin Programming language and Build RestFuL APIs using SpringBoot and Kotlin.
Who this course is for:
Developers who are interested in learning Kotlin Programming language, Developers who are interested in building applications using Kotlin and SpringBoot, Java developers who would like to learn Kotlin Programming Language