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
Supabase CLIのある開発日常
Search
TakashiAsanuma
August 22, 2024
Programming
3
320
Supabase CLIのある開発日常
TakashiAsanuma
August 22, 2024
Tweet
Share
More Decks by TakashiAsanuma
See All by TakashiAsanuma
DCC2P_IDCFクラウドコンテナ商用サービス事例紹介
takashiasanuma
0
82
SUSE RancherとKubernetes環境へのWAF対応
takashiasanuma
0
190
RubyによるPub/Sub messaging - パブリッククラウドのバックエンドシステム事例 /Public Cloud backend system
takashiasanuma
0
140
RubyでPub/Sub messaging-Multi Process-Daemonizes-Application
takashiasanuma
1
12k
Scalable Applications with Pub/Sub Messaging
takashiasanuma
0
120
Pub/Subメッセージングのテスト(LT版)
takashiasanuma
0
97
IDCクラウドのバックエンド
takashiasanuma
0
140
CMやるよって言われてからのインフラチューニング
takashiasanuma
0
220
今更ながらElasticSearch + Kibana導入で ハマってしまったこと
takashiasanuma
0
710
Other Decks in Programming
See All in Programming
ThorVG Viewer In VS Code
nors
0
700
AI Agent Dojo #4: watsonx Orchestrate ADK体験
oniak3ibm
PRO
0
130
AgentCoreとHuman in the Loop
har1101
5
190
SQL Server 2025 LT
odashinsuke
0
190
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
190
GISエンジニアから見たLINKSデータ
nokonoko1203
0
190
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
1.1k
gunshi
kazupon
1
140
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.2k
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.4k
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
680
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.2k
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
55
12k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.9k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Utilizing Notion as your number one productivity tool
mfonobong
2
200
Evolving SEO for Evolving Search Engines
ryanjones
0
100
Design in an AI World
tapps
0
130
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
400
How to train your dragon (web standard)
notwaldorf
97
6.5k
Code Review Best Practice
trishagee
74
19k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Transcript
Supabase CLIのある開発日常 株式会社Berry 浅沼 敬 2024/8/22 Supabase Tokyo Meetup
会社紹介:株式会社Berry 赤ちゃん向けの頭蓋形状矯正ヘルメットを提供する医療機器メーカーです 株式会社Berry https://www.berryinc.co.jp/
BerryはSupabaseを採用して3年 Findy Toolsへ導入事例を寄稿したり、テックブログで紹介したりしています Findy Tools Supabase導入事例 https://findy-tools.io/products/supabase/32/117 Berry テックブログ Supabaseでアプリをリリースする前に確認すること
https://zenn.dev/berry_blog/articles/cfce64da076878
背景・モチベーション Supabaseを使うなら、Supabase CLIも使わないともったいない! Berry入社時は、リモートのSupabaseを共有して開発していた ↓ Supabase CLIを利用:ローカル開発・CIの開発体験が爆上がり
Supabase CLI:よく使うコマンド > yarn supabase gen types typescript --local も必須で使う
開発の流れ ローカル SupabaseUI Supabase CLI テーブル 追加・編集 db diff テストデータ
db dump VSCode 実装・テスト Github Pull Request Github Actions CI db reset
デモ https://youtu.be/xYMo_KTpaHU?si=tyH-Qokoh9OfCk OY
ローカル & Github Actions の容易さ Supabase CLIの旨味はGithub Actions - Migration
& seed.sqlでローカルも Github Actions上も同じ状態にできる - 公式のActionsが用意されているので、 簡単にCIを始めることができる - 環境違いに困ることがない
環境による認知負荷を生みにくい ⇒ 開発体験向上 ローカル&Github Actionsとリモートは、すべて同じ環境になる = 環境によって覚えることを変えなくて良い! Supabase CLI migration
seed Github Actions Develop ment Supabase migration Staging Production
まとめ: 認知負荷と学習コストの軽減は、クラウドの本質的な恩恵でありがたい ・学習コストも低い Docker File, Docker Compose, Kube Manifest, TeraForm…
で、開発環境を構築してきた中で、もっとも簡単で快適
おまけ:Authを通してRLSをテストする Berry テックブログ VitestをつかってSupabaseのRow Level Security(RLS)の Policyをテストする https://zenn.dev/berry_blog/articles/03beda8c668127
Wantedly:株式会社Berry 3D ✕ 医療機器ベンチャーの幹部候補エンジニア募集! https://www.wantedly.com/projects/159442 6