Ktor Series: Dependency Injection using Koin — Ktor API Project

Vishwas Trivedi
4 min readDec 11, 2023

Another article in the Ktor Series, let’s go!

This is the second article in “Ktor Series”, in this article we are going to take a look at how we can use Koin to inject dependencies in our API project.

Well, it’s kinda true that dependency injection makes your code easy to test but let’s start with the basics first and take a look what what we are talking about.

What is dependency injection?

--

--

Vishwas Trivedi

I am an accomplished Software Engineer/ Project Manager with 8.5 years of technical experience in driving successful software development teams.