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
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
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.3k
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
830
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
410
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
32
14k
速習iPhone Duo対応
yuukiw00w
2
920
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
360
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
9.3k
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
520
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
0
120
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
110
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
370
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
350
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
290
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
340
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Site-Speed That Sticks
csswizardry
13
1.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
How to train your dragon (web standard)
notwaldorf
97
6.8k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
520
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
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