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
Transcript
23 slides
サーバーサイド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
More Decks by Yuta Tomiyama
See All by Yuta Tomiyama
ビルドプロセスをデバッグしよう!
yt8492
2
530
モバイルアプリ開発を始めよう!
yt8492
0
150
Git勉強会
yt8492
0
250
なんでもやってみる勇気
yt8492
0
150
Android Autoが思ったよりしんどい話
yt8492
0
260
apollo-kotlinにcontributeした話
yt8492
0
210
DMM TVのSDカードダウンロード機能を実装した話
yt8492
1
1.1k
今だからこそ知りたいKotlin Multiplatform
yt8492
0
370
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
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
210
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
270
はじめてのPLATEAU
nokonoko1203
1
690
眠らない開発チームの作り方
biwakonbu
0
190
SONY CISC-NEWS NWS-1750 + NWB-225 ハードウェアメンテとフレームバッファカラー対応 / KOF2026
tsutsui
0
150
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
380
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
140
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
720
マルチプロダクトSaaSの アプリ一覧を速くする——複数プロダクトにまたがる「権限行脚」を減らすまで #techramen26conf
mktakuya
1
280
Promiseの向こう側へコンテキストを届ける ― proposal-async-context
seriseri
1
1.2k
LLM 101
dalinaum
0
570
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
320
Featured
See All Featured
Six Lessons from altMBA
skipperchong
29
4.6k
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
3
200
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
790
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
330
Building the Perfect Custom Keyboard
takai
2
980
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Statistics for Hackers
jakevdp
799
230k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
400