Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
frourioがとりあえずすごかった話
Search
Kurogoma4D
December 20, 2020
Programming
780
0
Share
frourioがとりあえずすごかった話
Kurogoma4D
December 20, 2020
More Decks by Kurogoma4D
See All by Kurogoma4D
2019-12-08 学生LT in Tokyo
kurogoma4d
0
720
初参加なので就活の話をします
kurogoma4d
1
460
Other Decks in Programming
See All in Programming
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
180
Programming with a DJ Controller — not vibe coding
m_seki
3
860
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
1.1k
Road to RubyKaigi: Play Hard(ware)
makicamel
1
580
Sans tests, vos agents ne sont pas fiables
nabondance
0
110
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
710
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
120
AIを導入する前にやるべきこと
negima
2
360
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
770
PHPer、Cloudflare に引っ越す
suguruooki
2
200
Agent Skills を社内で育てる仕組み作り
jackchuka
1
2k
AWSはOSSをどのように 考えているのか?
akihisaikeda
0
120
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
780
Statistics for Hackers
jakevdp
799
230k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
920
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
350
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
Odyssey Design
rkendrick25
PRO
2
620
The SEO identity crisis: Don't let AI make you average
varn
0
460
Transcript
frourioが とりあえずすごかった話 Kurogoma4D
鈴木 崇史 / Kurogoma4D @Krgm4D 木更津高専出身 Flutterメインのモバイルアプリエンジニア 一人暮らし,エアコンしかなくて足元が寒いです
✗ 業務の話 ✗ Flutterの話
ある日友人が言ってたこと • メモ帳にテンプレ的な項目が設定できて • 後から項目が追加できて • すでにあるメモに追加した項目が 反映される そんなメモ帳ほしいなぁ
※要約
None
None
何を使ったか
https://frourio.io/
frourio is 何 • “Fast and type-safe full stack framework,
for TypeScript” • 早い話Ruby on RailsのTypeScript版
prisma + aspidaがすごい! ORM HTTPクライアント 形を共有
schema.prisma にスキーマを定義して `prisma generate` すると node_modules/配下に型が作られる これ
aspida側 aspidaのリクエスト/レスポンス型定義 (ルーティングはディレクトリ構成と同 じになる) GET /api/memos?post_id=1
prismaの型定義が使える
aspidaのコントローラー やってることはRoRの コントローラーと同じ
prismaでクエリを書く様子
サーバーサイドTS,良い…
ちなみにクライアントでは aspida用のSWR React Hook `useAspidaSWR` フックを使えば 型定義を参照することなくレスポンスの型をそのまま使える ※SWR(stale-while-revalidate)
: データフェッチ用のHook Next.jsではただ使うだけならクライアントサイドからリクエストが送れる便利なやつ https://swr.vercel.app/
快適
Thanks!