Code Samples
This is a mix of tutorial links, exercises and sample code.
The CS 346 Public Repository has a number of small samples. Also, Jeff (the instructor) has a couple of Kotlin projects in his GitLab repository that you are welcome to use for reference.
- MasterMind: desktop TODO application, stored to Supabase.
- Courses: course enrolment application, used for advising.
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.