Slide 1

Slide 1 text

About speaker Hello! I’m Toan Android Lead @Inspectorio (check out our opening positions!) https://toan.mobi toantran-ea toan_mobi

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Agenda 1. Why would we care about Kotlin? 2. Context of the talk 3. Explore the support of Google Cloud for Kotlin 4. Idea 5. Implementation (live coding) 6. What I learn from the journey

Slide 4

Slide 4 text

Why would we care about Kotlin? 1. Language fluency 2. Java + Kotlin inter-ops capability 3. Great extensibility of the language 4. Growing community with serious investment from Jetbrains and Google

Slide 5

Slide 5 text

Context of the talk - I’m looking for 1. Provide the backend capability for the Android app with little/no language change. 2. Scalable and easy to deploy 3. Code sharing between Android app and backend app

Slide 6

Slide 6 text

Context of the talk - I’m looking for

Slide 7

Slide 7 text

How it’s possible KOTLIN JVM Google Cloud Support

Slide 8

Slide 8 text

Google Cloud support Kotlin?

Slide 9

Slide 9 text

Hobby app - Calories Intake tracker 1. Create a new log entry for food intake 2. Read all the entries I have 3. Update a certain log entry 4. Delete log entry

Slide 10

Slide 10 text

Pick the stacks 1. Google App engine as the option to use on Google Cloud 2. Ktor as the framework for my API app 3. Google Cloud Datastore as the Storage Backend (NoSQL - key-value idea) ×

Slide 11

Slide 11 text

Basic setup 1. Create a local project based on Ktor to start 2. Create project on Google Cloud Platform console 3. Enable billing for your project 4. Install Google Cloud SDK 5. Install Java 8 or or higher on your local development machine

Slide 12

Slide 12 text

Get some code!

Slide 13

Slide 13 text

Test it out!

Slide 14

Slide 14 text

Switch to live code

Slide 15

Slide 15 text

What I learn from the journey 1. I should have the project setup with App Engine template to debug the app properly. 2. I had some hiccups with Ktor framework in encoding 3. Short learning curve 4. Quick to prototype and show it live 5. Quick deploy (you see!) 6. Comfortable work with Kotlin

Slide 16

Slide 16 text

Step by step guide Blog series - Bring Kotlin to cloud — a hobby project to explore the possibility - Medium https://medium.com/@toantran/bring-kotlin-to-cloud-a-hobby-project-to-explore-the-possibility-part-2-7e96abc6d75f

Slide 17

Slide 17 text

Thank you