Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

  • Book
  • © 2023

Pro Kotlin Web Apps from Scratch

Building Production-Ready Web Apps Without a Framework

Apress

Authors:

  • Teaches how to take full control of setup, startup, and runtime of your web app

  • Shows how implicit framework magic is replaced with explicit and concise code

  • Helps turns pro developers into production-grade Kotlin experts

  • 3563 Accesses

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-9057-6
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book USD 54.99
Price excludes VAT (USA)

This is a preview of subscription content, access via your institution.

Table of contents (16 chapters)

  1. Front Matter

    Pages i-xxi
  2. Up and Running with a Web App

    1. Front Matter

      Pages 1-1
    2. Setting Up a Development Environment

      • August Lilleaas
      Pages 3-17
    3. Setting Up the Web App Skeleton

      • August Lilleaas
      Pages 19-35
    4. Configuration Files

      • August Lilleaas
      Pages 37-54
  3. Libraries and Solutions

    1. Front Matter

      Pages 77-77
    2. Connecting to and Migrating SQL Databases

      • August Lilleaas
      Pages 79-96
    3. Querying a SQL Database

      • August Lilleaas
      Pages 97-117
    4. Automated Tests with jUnit 5

      • August Lilleaas
      Pages 119-139
    5. Parallelizing Service Calls with Coroutines

      • August Lilleaas
      Pages 141-160
    6. Building Traditional Web Apps with HTML and CSS

      • August Lilleaas
      Pages 161-195
    7. Building API-Based Back Ends

      • August Lilleaas
      Pages 197-212
    8. Enterprise Authentication Using Spring Security

      • August Lilleaas
      Pages 261-275
  4. Tools of the Trade

    1. Front Matter

      Pages 277-277
    2. Choosing the Right Library

      • August Lilleaas
      Pages 279-284
    3. An Assortment of Kotlin Tricks

      • August Lilleaas
      Pages 285-291

About this book

Build production-grade web apps from scratch – without using frameworks – with Kotlin on the Java platform. You’ll learn how to use and compose libraries, how to choose between different libraries, and the benefits of explicit and straight-forward code, vs. the implicit magic, conventions, and inversion of control you often see in frameworks.

The book teaches the Kotlin language by building production-ready Kotlin code. You’ll gain a deep understanding of the idiomatic use of the Kotlin language along with knowledge of how to apply Kotlin in production-grade web apps. The book also bridges the gap between building from scratch and using existing frameworks. For example, you’ll learn how to integrate Spring Security-based authentication in web apps written from scratch, so you can leverage existing tooling in your organization without having to take on the entire Spring framework. 

The first section of the book sets up the base structure of your web app, such as routing, configuration files, and database migrations. The remaining chapters are broken into individual aspects of building production-ready web apps. Appendices at the end of the book explain how to use different libraries than the ones chosen in the main chapters, so you'll learn how to decouple your code from specific libraries, and choose between many different libraries to get the job done in your own web apps.


What You Will Learn
  • Compose libraries and manage boilerplate code using idiomatic and powerful Kotlin
  • Manage and query SQL databases without ORMs and mapping layers
  • Write resilient and change-proof tests in support of test-driven development practices
  • Create traditional, HTML-based web apps, APIs for JavaScript-based single-page web apps and native mobile apps
  • Manage parallelism and external service calls using Kotlin co-routines
  • Deploy to production using embedded servers, WAR files, and serverless approaches
  • Bridge the gap between custom-built apps and enterprise, using Spring Context and Spring Security


Who This Book Is For

The expert developer who is ready to take full control of the tech stack, and use the Kotlin language, type system, and standard library, to ship production-ready web apps. Readers should have prior programming experience. Experience with Java or another JVM language is helpful. 

Keywords

  • Kotlin Programming
  • Spring Framework
  • Spring Security
  • Spring Context
  • Web Applications
  • Single-page Web Apps
  • Serverless Computing
  • Jersey
  • Kooby
  • Hoplite
  • Spek
  • Koin
  • Building Web Apps without a framework
  • Web development
  • single page applications

Authors and Affiliations

  • Oslo, Norway

    August Lilleaas

About the author

​August Lilleaas has built web apps, user interfaces, and real-time systems since 2004, and mobile apps since the app stores opened in the late 2000s. After picking up Clojure in 2012, he left the frameworks and ORMs behind and started to build web apps from scratch, and has shipped to production using Clojure, Groovy, Node.JS, Elixir, and Kotlin. August has worked as a consultant for a decade and is now an independent contractor and startup founder. 

Bibliographic Information

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-9057-6
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book USD 54.99
Price excludes VAT (USA)