Skip to content

With the recipe service you can perform crud operations on the recipes data.

License

Notifications You must be signed in to change notification settings

alimeshkat/hack-to-kotlin

Repository files navigation

Awesome Kotlin Badge

About this project

This project is created to help Java developers to learn how to use Kotlin with Spring Boot. It contains a set of recipes that will guide you through the process of converting a Java application to Kotlin and making it non-blocking.

We assume that you already have some basic knowledge of Kotlin, but want to go beyond that and learn how to use it with the Spring Boot framework. This project is here to help you with that. The goal of this project was not to explain the various Spring Boot modules.

The Recipes

Java to Kotlin

The first set of recipes explain step-by-step what needs to be done to migrate a Java Spring Boot project to Kotlin. Follow the recipes here in the correct order, and you will be able to convert the Java code to Kotlin in no time!

Goals:

  • Best practices of using Kotlin
  • Kotlin's utilities available out-of-the-box
  • Pitfalls of converting Java code directly to Kotlin
  • Kotlin's interoperability with Java
  • Neat Kotlin features
  • And more!

Blocking to non-blocking

In the second set of recipes we will refactor our blocking application to a non-blocking one. We will use Kotlin Coroutines and Spring Reactor to achieve this. Follow the recipes here in the correct order, and learn how to convert a blocking application to a non-blocking one!

Goals:

  • Using Kotlin Coroutines with Spring Boot
  • Bridging the gap between imperative and reactive programming models

Installation

Install the following software:

  • Java 21
  • Maven v3
  • IntelliJ
  • Git

Fork this project and clone it. You can also directly clone this project and keep your changes locally.

Run mvn verify command to test the installation:

./mvnw clean verify

In some recipes we have added a section with supplement information about a specific topic. These section you can recognize by the bulb icon .


Feedback

Let us know what you think about this workshop by filling out this form.

About

With the recipe service you can perform crud operations on the recipes data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published