Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
サーバーサイドKotlin/JS
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuta Tomiyama
September 13, 2020
Programming
480
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
サーバーサイドKotlin/JS
秋のLT大会 2020 Online にて発表
Yuta Tomiyama
September 13, 2020
More Decks by Yuta Tomiyama
See All by Yuta Tomiyama
ビルドプロセスをデバッグしよう!
yt8492
2
510
モバイルアプリ開発を始めよう!
yt8492
0
130
Git勉強会
yt8492
0
240
なんでもやってみる勇気
yt8492
0
140
Android Autoが思ったよりしんどい話
yt8492
0
250
apollo-kotlinにcontributeした話
yt8492
0
200
DMM TVのSDカードダウンロード機能を実装した話
yt8492
1
1k
今だからこそ知りたいKotlin Multiplatform
yt8492
0
350
State management and API calls in Jetpack Compose: Learning Apollo + Jetpack Compose through React Hooks
yt8492
0
1.4k
Other Decks in Programming
See All in Programming
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
380
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
270
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.8k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
300
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
100
App Intentsのビルドプロセスを支える技術
kntkymt
0
430
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
810
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
350
ゲームコントローラやキーボードのファームウェアをSwiftで書く
kishikawakatsumi
1
250
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
240
新卒PdEのリアル
ryu1013
1
510
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
4
3.7k
Featured
See All Featured
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
490
Unsuck your backbone
ammeep
672
58k
Statistics for Hackers
jakevdp
799
230k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
440
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
250
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
290
Paper Plane (Part 1)
katiecoart
PRO
2
11k
Believing is Seeing
oripsolob
1
220
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
260
Balancing Empowerment & Direction
lara
6
1.3k
Transcript
サーバーサイドKotlin 秋のLT大会 2020 Online
自己紹介 HN: マヤミト 会津大学26期 (学部3年) Zli 現代表 GitHub: https://github.com/yt8492 好きな言語:
Kotlin, Java, Scala 趣味: Kotlin, 同人音声, VTuber ポートフォリオ: https://yt8492.com/ Twitter: yt8492
Kotlinでできること - JVM - Javaでできること全般 - Android - サーバーサイド(Ktor, Spring
Boot, etc...) - JS - Webフロント - Node.js - Native
Kotlinでできること - JVM - Javaでできること全般 - Android - サーバーサイド(Ktor, Spring
Boot, etc...) - JS - Webフロント - Node.js - Native
今日はKotlinのサーバーサイド フレームワークを紹介していきます
今日はKotlinのサーバーサイド フレームワークを紹介していきます
今日はKotlinのサーバーサイド フレームワークを紹介していきません
Kotlinでできること - JVM - Javaでできること全般 - Android - サーバーサイド(Ktor, Spring
Boot, etc...) - JS - Webフロント - Node.js - Native
Kotlinでできること - JVM - Javaでできること全般 - Android - サーバーサイド(Ktor, Spring
Boot, etc...) - JS - Webフロント - Node.js - Native
今日はKotlin/JSでサーバーサイド開発をす る話をします
サーバーサイドKotlin/JS 秋のLT大会 2020 Online
そもそもKotlin/JSとは - KotlinをJSにトランスパイルする技術 - JSのライブラリも利用可能 - Kotlinで型定義を書けばJSのコードに型を付けられる - Webフロントエンドの開発もNode.jsでサーバーサイドの開発もできる トランスパイル
kotlinx-nodejs Kotlin公式が提供しているKotlin向けNode.jsラッパーライブラリ https://github.com/Kotlin/kotlinx-nodejs NodeのAPIのKotlinの型定義を提供している(が、まだexperimentalなため不完全な模 様) TypeScriptの型定義をKotlinの型定義に変換するDukatというツールで生成されている
簡単なサーバーを書いてみよう ゴール: HTTPリクエストを送ったらurlとmethodが返される簡単なサーバーを立てる
プロジェクトのセットアップ IntelliJ IDEAでKotlin/JS for Node.jsの新規プロジェクトを作成
プロジェクトのセットアップ Kotlinバージョン: 1.4.0 build.gradleの依存にkotlinx-nodejsを追加し、ターゲットをnodejsにする
サーバーのコード
起動&実際にリクエストを叩いてみる
できた
感じたこと 良かった点 - 起動が爆速 - 意外と普通にできてしまった 問題点 - Nodeのhttpパッケージだけで本格的にサーバーサイド開発するのはキツい -
get("/hoge") { ... } みたいに書けたほうがよさそう (expressみたいに) - DBを扱うライブラリが現状なさそう
次回予告 Kotlin/JSのサーバーサイドフレームワーク 作ってみた
開発中!
リンク集 kotlinx-nodejs https://github.com/Kotlin/kotlinx-nodejs 今回のもう少し細かい解説 https://qiita.com/yt8492/items/1271b30ecd26f5ca0efb 開発中フレームワーク https://github.com/yt8492/indikate 過去のLT資料 https://speakerdeck.com/yt8492