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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
TakashiAsanuma
August 22, 2024
Programming
3
330
Supabase CLIのある開発日常
TakashiAsanuma
August 22, 2024
Tweet
Share
More Decks by TakashiAsanuma
See All by TakashiAsanuma
DCC2P_IDCFクラウドコンテナ商用サービス事例紹介
takashiasanuma
0
84
SUSE RancherとKubernetes環境へのWAF対応
takashiasanuma
0
200
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
AI & Enginnering
codelynx
0
120
Fluid Templating in TYPO3 14
s2b
0
130
Gemini for developers
meteatamel
0
100
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
210
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
200
組織で育むオブザーバビリティ
ryota_hnk
0
180
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
CSC307 Lecture 04
javiergs
PRO
0
660
React Native × React Router v7 API通信の共通化で考えるべきこと
suguruooki
0
100
AI時代の認知負荷との向き合い方
optfit
0
170
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
Featured
See All Featured
Navigating Team Friction
lara
192
16k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
110k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
340
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Exploring anti-patterns in Rails
aemeredith
2
250
Unsuck your backbone
ammeep
671
58k
The Invisible Side of Design
smashingmag
302
51k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Practical Orchestrator
shlominoach
191
11k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.1k
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