Pro Kotlin Web Apps from Scratch Год издания: 2023 Автор: Lilleaas A. Издательство: Apress ISBN: 978-1-4842-9057-6 Язык: Английский Формат: PDF/epub Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 327 Описание: 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
Примеры страниц
Оглавление
About the Author xv About the Technical Reviewer xvii Acknowledgments xix Introduction xxi Part I: Up and Running with a Web App 1 Chapter 1: Setting Up a Development Environment 3 Chapter 2: Setting Up the Web App Skeleton 19 Chapter 3: Configuration Files 37 Chapter 4: Decoupling Web Handlers from Specific Libraries 55 Part II: Libraries and Solutions 77 Chapter 5: Connecting to and Migrating SQL Databases 79 Chapter 6: Querying a SQL Database 97 Chapter 7: Automated Tests with jUnit 5 119 Chapter 8: Parallelizing Service Calls with Coroutines 141 Chapter 9: Building Traditional Web Apps with HTML and CSS 161 Chapter 10: Building API-Based Back Ends 197 Chapter 11: Deploying to Traditional Server Based Environments 213 Chapter 12: Building and Deploying to Serverless Environments 223 Chapter 13: Setup, Teardown, and Dependency Injection with Spring Context 251 Chapter 14: Enterprise Authentication Using Spring Security 261 Part III: Tools of the Trade 277 Chapter 15: Choosing the Right Library 279 Chapter 16: An Assortment of Kotlin Tricks 285 Appendix A: Using Jooby Instead of Ktor 293 Appendix B: Using Hoplite Instead of Typesafe Config 303 Appendix C: Using Spek Instead of jUnit 5 307 Index 313
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum