Kotlin is a powerful language that has applications in a wide variety of fields. It is a concise, safe, interoperable, and tool-friendly language. The Android team has also announced first-class support for Kotlin, which is an added boost to the language. Kotlin’s growth is fueled through carefully designed business and technology benefits.
The collection of projects demonstrates the versatility of the language and enables you to build standalone applications on your own. You’ll build comprehensive applications using the various features of Kotlin. Scale, performance, and high availability lie at the heart of the projects, and the lessons learned throughout this book.
You’ll learn how to build a social media aggregator app that will help you efficiently track various feeds, develop a geospatial webservice with Kotlin and Spring Boot, build responsive web applications with Kotlin, build a REST API for a news feed reader, and build a server-side chat application with Kotlin.
It also covers the various libraries and frameworks used in the projects. Through the course of building applications, you’ll not only get to grips with the various features of Kotlin, but you’ll also discover how to design and prototype professional-grade applications.
Table of Contents
1: THE POWER OF KOTLIN
It’s an amazing introductory chapter. This will help you to get a good idea about the Kotlin as a language. You realize what Kotlin can do in as Mobile, Desktop and Server side programming language. Read it with your favourite coffee in your hand.
2: GEOSPATIAL MESSENGER – SPRING BOOT
With the focus on the practical and building a production ready code, here comes the first chapter. You create a Geospatial Messenger using Kotlin. Kotlin is designed to go well with any Java code and framework. You can clearly see the theory working like a charm in this first chapter. Sit on your work station and just start coding.
3: SOCIAL MEDIA AGGREGATOR ANDROID APP
We know world is saying Mobile First. So Kotlin and we as Kotlin enthusiasts can not keep mobile platform aside. We chose Android to test power of Kotlin. You can see a full fledged application written in Kotlin and executed on Android OS, just like that! The social media aggregator app will give a good idea about how to take care of some of the very basic concepts like making api calls, saving data etc, using Kotlin. You will be surprised to the concise code.
Now, it’s time to test Kotlin on server side. We chose Node.JS this time. We wrote a chat application, where user can do peer to peer chat as well as group chat. And the code was running on node server as smooth as silk. We simply need to add some Kotlin dependencies using npm and you are done.
6: NEWS FEED – REST API
Building a REST Api is very important part of software ecosystem. REST Apis are most preferred way of transferring the useful chunk of data to the clients. In this chapter you can see how to write a project which emits news feeds using REST.
7: CSV READER IN KOTLIN NATIVE
Ever thought of writing a code in Kotlin and running it over Raspberry Pi? Kotlin made it possible using Kotlin Native. It targets embedded systems and iOS as well. Seems like Kotlin has decided to rule everywhere.
8: DICTIONARY DESKTOP APPLICATION – TORNADOFX
We all know, that using JavaFx how easy is to build a standalone applications. Using TornadoFX which is a lightweightJavaFx framework for Kotlin. Try it out! We created a simple desktop based dictionary app using TornadoFx.