Search⌘ K
AI Features

Getting Started and Adding the Dependencies

Explore how to create a Kotlin Gradle project and configure it for Ktor microservices by adding necessary dependencies. Understand the structure of build.gradle.kts, dependency management, and prepare a server capable of handling endpoints for a cat shelter application.

We'll cover the following...

The framework we’ll be using for our microservice in this chapter is called Ktor. It’s a concurrent framework that’s developed and maintained by the creators of the Kotlin programming language.

For a Kotlin Gradle project, we have some requirements.

Technical requirements

  • JDK 11 or later
  • IntelliJ IDEA
  • Gradle 6.8 or later
  • PostgreSQL 14 or later

Note: We do not need the IDE for the course, as a code development environment is provided here.

You’re probably tired of creating to-do or shopping lists.

So, instead, in this chapter, the microservice will be for a cat shelter. The microservice should be able to do the following:

  • Supply an endpoint we can ping
...