Video description
Build web apps quickly and with less effort using Kotlin and Ktor
About This Video
- Create a lightweight REST-enabled backend from scratch for use on your website or mobile app
- Understand the Ktor lifecycle and how to apply plugins to develop a bookstore app and master core app development
- Create a Ktor project from scratch and get started with Kotlin coroutines and Kotlin class extensions
In Detail
Ktor is a Kotlin-specific framework for building asynchronous client- and server-side web applications. It is one of the most widely-adopted and supported alternatives to Java for Android app development. Ktor has gained massive popularity remarkably quickly, and you'll rapidly create connected applications in Kotlin with minimal effort.
This course provides hands-on training in a practical and engaging way to get you started building an end-to-end web application using Kotlin's popular framework, Ktor. You will begin by swiftly covering Kotlin and Ktor basics (for this, you'll benefit from some basic knowledge of Kotlin before starting this course).
You'll cover setting up your project-which will be full-stack (client and server)—and create your web application in the Ktor framework using Kotlin as your language. You'll cover some important Ktor features and solutions, and will cover routing and HTML Builder. You'll also run your configured application and test it.
By the end of the course, you will have learned how to build web applications with Kotlin using the Ktor framework.
Audience
This course is suitable for Java, Kotlin, and Android developers who want to use the Ktor framework, which is quickly gaining popularity when it comes to building client- and server-side web applications. A basic knowledge of Kotlin will be required.
Publisher resources
Table of contents
- Chapter 1 : Getting Started with Kotlin and Ktor
-
Chapter 2 : Understanding the Ktor Lifecycle
- Kotlin coroutine explained and demonstrated
- Kotlin Extension explained and demonstrated
- Ktor architecture and lifecycle explained
- Ktor installation and configuration of features
- Ktor routes in general
- Calling 3rd party REST services
- Endpoints for our book store. Get and post books
- The PUT,POST,GET and DELETE Routes
- Let Us Test the Endpoints with cURL
-
Chapter 3 : Working with Ktor REST API
- Creating a REST API
- Feature Content Negotiation
- Conversion from Kotlin object to JSON with Jackson
- Auto-update web application on build
- Routes with path variables
- Routes with request parameters
- Getting and setting headers
- Bookstore-application: Convert json to objects. Add search endpoints with request parameters
-
Chapter 4 : Ktor REST API - Error handling and authentication
- Feature Status Pages
- Data posted to the route endpoint
- Basic Authentication on chosen endpoints
- Routing interceptors - Check admin rights
- CallLogging log all incoming requests
- Metrics statistics on the usage of the endpoints
- Bookstore-application: Add error handling and basic authentication to our book store
- Chapter 5 : Persisting data with MongoDB
- Chapter 6 : Testing the Ktor application
-
Chapter 7 : A web UI with Ktor - HTML and CSS DSL
- HTML DSL - Installing the feature and writing basic HTML
- HTML DSL importing css
- HTML DSL importing static files
- CSS DSL - Installing the feature and writing basic CSS
- CSS DSL rules
- HTML Templating and passing variables
- Bookstore-application: Create a login page
- Bookstore-application: Create a Book search page
- Bookstore-application: Create a Cart checkout page
- Bookstore-application: Create receipt page
- Chapter 8 : Prepare for deployment
Product information
- Title: Hands-On Kotlin Web Development with Ktor
- Author(s):
- Release date: June 2020
- Publisher(s): Packt Publishing
- ISBN: 9781838640767
You might also like
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …
book
Redis in Action
Summary Redis in Action introduces Redis and walks you through examples that demonstrate how to use …
video
AWS Certified Solutions Architect Associate (SAA-C03)
8+ Hours of Video Instruction Get intensive, hands-on AWS training with Chad Smith in this 2 …
book
How Computers Really Work
How Computers Really Work is a hands-on guide to the computing ecosystem: everything from circuits to …