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
Firebaseのデータ更新のススメ
Search
hiro-nagami
June 19, 2019
Programming
0
240
Firebaseのデータ更新のススメ
hiro-nagami
June 19, 2019
Tweet
Share
More Decks by hiro-nagami
See All by hiro-nagami
ReactでAtomic Design
hiro3
2
72
Other Decks in Programming
See All in Programming
CSC509 Lecture 12
javiergs
PRO
0
160
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.8k
Amazon Qを使ってIaCを触ろう!
maruto
0
420
Jakarta EE meets AI
ivargrimstad
0
280
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.3k
cmp.Or に感動した
otakakot
3
230
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
480
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
340
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
133
8.9k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
Typedesign – Prime Four
hannesfritz
40
2.4k
Designing for Performance
lara
604
68k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
Transcript
Firebase Firestore σʔλߋ৽ͷϙΠϯτ
FIREBASEͷσʔλߋ৽ͷεεϝ ࣗݾհ
FIREBASEͷσʔλߋ৽ͷεεϝ ࠓͷςʔϚ Firebase DBΛͬͯͯ ߋ৽ϩδοΫͰ٧·ͬͨ
FIREBASEͷσʔλߋ৽ͷεεϝ ҎԼͷΑ͏ͳػೳΛ࣮ ཧऀ Ճϝϯόʔ ❶ ট ❷ ࢀՃ άϧʔϓ
FIREBASEͷσʔλߋ৽ͷεεϝ FirebaseͰDBΛ ΞϓϦ͔Βߋ৽Ͱ͖Δ
FIREBASEͷσʔλߋ৽ͷεεϝ FirebaseͰDBΛ ΞϓϦ͔Βߋ৽Ͱ͖Δ αʔόʔͷࣝͳͯ͘ ؆୯ʹσʔλ͕Ճɾߋ৽Ͱ͖Δ
FIREBASEͷσʔλߋ৽ͷεεϝ ఆ͢Δσʔλߏ Ϣʔβʔ - Id: ϢʔβʔID - Name: Ϣʔβʔ໊ -
JoinedGroup: ࢀՃ͍ͯ͠Δάϧʔϓ άϧʔϓ - Id: άϧʔϓID - Admin: ཧऀͷϢʔβʔID - Members: ࢀՃ͍ͯ͠ΔϝϯόʔͷID - Invited: টதͷϢʔβʔID
FIREBASEͷσʔλߋ৽ͷεεϝ ྲྀΕ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ Group => Invited
❷ ট௨ ❸ ঝ - ࣗͷࢀՃάϧʔϓՃ User => GroupsʹάϧʔϓIDՃ - άϧʔϓͷϝϯόʔʹࣗΛՃ Group => MembersʹϢʔβʔIDՃ
FIREBASEͷσʔλߋ৽ͷεεϝ DBͷηΩϡϦςΟઃఆ ↑ཧऀҎ֎ߋ৽Ͱ͖ͳ͍ // Ϣʔβʔ // άϧʔϓ
FIREBASEͷσʔλߋ৽ͷεεϝ ηΩϡϦςΟͷઃఆ͢Δͱɻɻ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ Group => Invited
❷ ট௨ ❸ ঝ - ࣗͷࢀՃάϧʔϓՃ User => GroupsʹάϧʔϓIDՃ - άϧʔϓͷϝϯόʔʹࣗΛՃ Group => MembersʹϢʔβʔIDՃ Ͱ͖ͳ͍ʂʂ
FIREBASEͷσʔλߋ৽ͷεεϝ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ ❷ ট௨ COULD FUNCTIONS
ADMIN ❸ ঝ Firebase Cloud FunctionsΛͬͯadminͰॻ͖ࠐΉ ❹ ॻ͖ࠐΈ
FIREBASEͷσʔλߋ৽ͷεεϝ DBͷηΩϡϦςΟઃఆ ↑Firebaseཧऀͷߋ৽ݖݶ
FIREBASEͷσʔλߋ৽ͷεεϝ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ ❷ ট௨ COULD FUNCTIONS
ADMIN ❸ ঝ ແࣄॻ͖ࠐΊΔ ❹ ॻ͖ࠐΈ
FIREBASEͷσʔλߋ৽ͷεεϝ ࠓͷςʔϚ Ճɾߋ৽ Firebase Cloud FunctionΛ ͏ͷ͕Φεεϝ