Web Development in Kotlin: From Basics to Deployment
Web Development in Kotlin: From Basics to Deployment
Summary:
Kotlin is confidently conquering the world of server-side development, offering concise syntax, full compatibility with Java, and modern tools. The book "Web Development in Kotlin: From Basics to Deployment" is a comprehensive guide that will take you from your first lines of code to launching a finished web application in production.
What is this book about?
The book sequentially covers all stages of creating a web project in Kotlin. You will start with the basics of the language and environment setup, and then move on to practical tasks:
- Kotlin Basics — data types, functions, classes, coroutines, and working with collections.
- Frameworks — a detailed study of Ktor (a lightweight asynchronous framework) and Spring Boot (a powerful tool for enterprise development).
- Working with Data — connecting to databases (PostgreSQL, MySQL), using ORM (Exposed, Hibernate), and writing SQL queries.
- REST API — designing endpoints, request validation, error handling, and documentation using OpenAPI.
- Authentication and Security — JWT tokens, OAuth2, protection against CSRF and XSS attacks.
- Testing — unit, integration, and end-to-end tests using JUnit and MockK.
- Deployment — project build (Gradle/Maven), containerization with Docker, deployment on VPS, Heroku, or AWS.
Who is this book for?
The book is suitable both for beginners who want to learn Kotlin from scratch, and for experienced Java developers looking to switch to a more modern language. If you already know the basics of programming but haven't worked with web development in Kotlin, you will find a structured path from simple to complex here.
What will you learn?
- How to set up a project and choose the right framework.
- How to create a RESTful API from scratch.
- How to work with databases and caching.
- How to write clean, testable, and scalable code.
- How to automate build and deployment.
The book contains many code examples, practical assignments, and ready-made projects. Each chapter ends with exercises to reinforce the material. After reading, you will be able to independently develop and deploy full-fledged web applications in Kotlin.
The author is Alexey Smirnov, a senior developer with 10 years of experience in Java/Kotlin, who has shared knowledge at JUG.ru conferences and in a blog on Habr. All examples are tested on current versions of Kotlin 1.9+ and are compatible with the latest releases of the frameworks.
Download the book on PythonLib and start your journey to mastering web development in Kotlin!