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
360
3
Share
Supabase CLIのある開発日常
TakashiAsanuma
August 22, 2024
More Decks by TakashiAsanuma
See All by TakashiAsanuma
DCC2P_IDCFクラウドコンテナ商用サービス事例紹介
takashiasanuma
0
96
SUSE RancherとKubernetes環境へのWAF対応
takashiasanuma
0
210
RubyによるPub/Sub messaging - パブリッククラウドのバックエンドシステム事例 /Public Cloud backend system
takashiasanuma
0
150
RubyでPub/Sub messaging-Multi Process-Daemonizes-Application
takashiasanuma
1
12k
Scalable Applications with Pub/Sub Messaging
takashiasanuma
0
130
Pub/Subメッセージングのテスト(LT版)
takashiasanuma
0
110
IDCクラウドのバックエンド
takashiasanuma
0
150
CMやるよって言われてからのインフラチューニング
takashiasanuma
0
240
今更ながらElasticSearch + Kibana導入で ハマってしまったこと
takashiasanuma
0
730
Other Decks in Programming
See All in Programming
「Linuxサーバー構築標準教科書」を読んでみた #ツナギメオフライン.7
akase244
0
1.4k
実用!Hono RPC2026
yodaka
2
280
Back to the roots of date
jinroq
0
520
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
690
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
1k
GitHubCopilotCLIをはじめよう.pdf
htkym
0
290
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
180
t *testing.T は どこからやってくるの?
otakakot
1
790
AI-DLC Deep Dive
yuukiyo
9
4.9k
Explore CoroutineScope
tomoeng11
0
110
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
590
NakouPAY説明用
annouim0
0
270
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
450
Heart Work Chapter 1 - Part 1
lfama
PRO
6
35k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
The Invisible Side of Design
smashingmag
303
52k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
500
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
240
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
280
Side Projects
sachag
455
43k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
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