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
520
モバイルアプリ開発を始めよう!
yt8492
0
130
Git勉強会
yt8492
0
240
なんでもやってみる勇気
yt8492
0
140
Android Autoが思ったよりしんどい話
yt8492
0
260
apollo-kotlinにcontributeした話
yt8492
0
200
DMM TVのSDカードダウンロード機能を実装した話
yt8492
1
1k
今だからこそ知りたいKotlin Multiplatform
yt8492
0
360
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
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
370
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
190
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
180
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
120
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
160
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.4k
オーケストレーション記述言語 Katari
yukikurage
0
190
phperだってパンチカードでコーディングしたい
o0h
PRO
0
410
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
130
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
1.1k
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
190
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
330
Featured
See All Featured
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
A Modern Web Designer's Workflow
chriscoyier
699
190k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
The Cost Of JavaScript in 2023
addyosmani
55
10k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Skip the Path - Find Your Career Trail
mkilby
1
260
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
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