Category: Kotlin
-

Dropwizard Kotlin in a Docker container
Docker is a fantastic way to run micro-services like Dropwizard in a cloud environment. Because the service should be stateless, you can spin up multiple instances of them easily, allowing increased resilience (if one instance becomes unresponsive), simplified no outage deployments (can easily spin up new versions of the software) and much more. Docker also…
-

Dropwizard Kotlin ‘Have I Been Pwned’ Password Resource
This is actually Part 5 of the “Building a Kotlin Dropwizard Maven REST API from scratch” series but I have broken it out into it’s own post for two reasons. Firstly this part is only useful if you want your API to talk to another API, while very common, is not always the case. Secondly…
-

Building a Kotlin Dropwizard Maven REST API from scratch: Part 3
Part 3: Testing Before we run anything, it is probably a good idea to know it’s going to behave the way we intended to. The best way to do this is to write test, we can do this using normal junit testing (I am sure you are familiar with from Java) and it’s the same…
-

Building a Kotlin Dropwizard Maven REST API from scratch: Part 2
Part 2: Add Dropwizard After creating our POM file in Part 1, we are ready to start writing some Dropwizard Kotlin code! We first need to create our folder structure. Next to your pom.xml file; create a folder named src, then inside there create one named main, and finally in there ,create two folders, kotlin…