Code Samples
This is a mix of tutorial links, exercises and sample code.
Library and framework developers often create tutorials and sample code to help you get started. The official repos for Kotlin, Ktor, JetPack Compose and Compose Multiplatform are particularly helpful!
Gradle
- Introduction to Gradle for Developers. Free introductory course. Recommended!
Kotlin Code
- Atomic Kotlin Exercises: Exercises to accompany the Atomic Kotlin book.
- Kotlin Onboarding. Free introductory course.
- Kotlin Koans. Free intermediate-level exercises.
- Kotlin Programming Language. GitHub repo for the Kotlin project.
- Kotlin-Algorithms-and-Design-Patterns. Algorithms and design patterns.
Kotlin Multiplatform Code
- kmm-basic-sample. Cross-platform mobile application.
- my-bird-app. Cross-platform mobile with Compose.
- John O’Reilly’s KMP samples. Many samples, some of which are included in the official Kotlin KMP repo.
- Ktor codeSnippets. Networking with Ktor.
- Exposed Samples. Databases with Exposed.
Compose Code
- Composables. Every Jetpack Compose component listed in one place.
- Compose Multiplatform Repo. Desktop applications for macOS, Windows, Linux.
- Compose Charts Desktop. Simple plots.
- Compose Color Picker. Graphical colour chooser.
- Jetpack Compose for Android Developers. Google code path.
- Jetpack Compose Repo. Mobile applications for Android.
- State in Jetpack Compose. Advanced code lab.
Cloud Computing
- Google Cloud Platform Kotlin Samples. Official samples.
- How to Publish a Ktor Docker Image to Container Registry Using the Ktor Plugin. Publish from your IDE.
- Serverless Kotlin on Google Cloud Run. Getting a Ktor service running in the cloud.