Description
Book SynopsisBuild 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 t
Table of Contents
Part I. Up and Running with a Web App
1. Setting Up A Development Environment2. Setting Up the Web App Skeleton3. Configuration Files4. Decoupling Web Handlers from Specific Libraries
Part II. Libraries and Solutions5. Connecting to and Migrating SQL Databases6. Querying a SQL Database7. Automated Tests with jUnit 58. Parallelizing Service Calls with Coroutines
9. Building Traditional Web Apps with HTML and CSS10. Building API Based Backends11. Deploying to Traditional Server Based Environments12. Build and Deploy to a Serverless Environment13. Setup, Teardown and Dependency Injection with Spring Context
14. Enterprise Authentication using Spring Security
Part III. Tools of the Trade
15. Choosing the Right Library16. An Assortment of Kotlin TricksAppendix A: Using Jooby Instead of Ktor
Appendix B: Using Hoplite Instead of Typesafe Config
Appendix C: Using Spek Instead of jUnit 5