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
クリぼっちLT.pdf
Search
yuki-marume
December 25, 2018
0
240
クリぼっちLT.pdf
yuki-marume
December 25, 2018
Tweet
Share
More Decks by yuki-marume
See All by yuki-marume
FlutterMeetUp.pdf
maru01
0
140
あるあるLT.pdf
maru01
0
190
Featured
See All Featured
Music & Morning Musume
bryan
46
6.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Rebuilding a faster, lazier Slack
samanthasiow
82
9.1k
Making Projects Easy
brettharned
116
6.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Optimizing for Happiness
mojombo
379
70k
BBQ
matthewcrist
89
9.7k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
How to Ace a Technical Interview
jacobian
277
23k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
A designer walks into a library…
pauljervisheath
207
24k
Transcript
ΫϦ΅ͬͪΛٹ͏രνϟοτΞϓϦ։ൃ ʙ'JSFTUPSFͱڞʹʙ ؙ ༗ً 1
ؙɹ༗ً 2 ॴଐˠ and factoryגࣜձࣾ GitHub→https://github.com/maru01 twitter→https://twitter.com/yukimarume87 Qiita→https://qiita.com/marumarumaru
࣍ 3 ɾFirestoreͱʁ ɾσϞ ɾͲ͏ͬͯ࡞Δͷʁ ɾ·ͱΊ
࣍ 4 ɾFirestoreͱʁ ɾσϞ ɾͲ͏ͬͯ࡞Δͷʁ ɾ·ͱΊ
Firestoreͱʁ 5
Firestoreͱʁ 6 ɾNoSQL Ϋϥυ σʔλϕʔε ɾΫϥΠΞϯτଆͱαʔόʔଆͷσʔλ͕ϦΞϧλΠϜͰಉظ ͞ΕΔɻϦΞϧλΠϜϦεφʔʹΑΓมߋ෦ΛऔಘͰ͖Δɻ ɾΦϑϥΠϯͰಈ͘͠ɺΦϑϥΠϯ͔ΒΦϯϥΠϯʹ ͳͬͨΒউखʹσʔλΛಉظͯ͘͠ΕΔɻ
Firestoreͱʁ 7 ɾίϨΫγϣϯͱυΩϡϝϯτͰσʔλΛද͢ ɾίϨΫγϣϯυΩϡϝϯτͷू߹ ɾυΩϡϝϯτϓϩύςΟͱαϒίϨΫγϣϯΛ࣋ͨ ͤΔ͜ͱ͕Ͱ͖Δ
8 ϦΞϧλΠϜͱ͍͑ʁ
9 ͦ͏ʂ
10 νϟοτʂ
11
࣍ 12 ɾFirestoreͱʁ ɾσϞ ɾͲ͏ͬͯ࡞Δͷʁ ɾ·ͱΊ
࣍ 13 ɾFirestoreͱʁ ɾσϞ ɾͲ͏ͬͯ࡞Δͷʁ ɾ·ͱΊ
14 σʔλϕʔεߏ
15 rooms - document - ϓϩύςΟ ɹ ɾcreateTime ɹ ɾname
ɹɹ ίϨΫγϣϯ ɹ ɾtalks - document - ϓϩύςΟ ɹɹɹɹɹɹɹɹɹɹɹɹ ɾmessage ɾsendTime ɾuserName - document - document - document - document users - document - ϓϩύςΟ ɹ ɾname ɹ ɾpassword - document - document
16 rooms - document - ϓϩύςΟ ɹ ɾcreateTime ɹ ɾname
ɹɹ ίϨΫγϣϯ ɹ ɾtalks - document - ϓϩύςΟ ɹɹɹɹɹɹɹɹɹɹɹɹ ɾmessage ɾsendTime ɾuserName - document - document - document - document users - document - ϓϩύςΟ ɹ ɾname ɹ ɾpassword - document - document
17 ɾී௨ϢʔβʔIDͱ͔͏ΑͶʁ ɾσʔλͷ߹ੑऔΕͳ͍ΑͶʁ ɾ͡Όͳ͍ʁ
18 ͍͍ΜͰ͢ʂʂ
19 ɾRDBͷΑ͏ʹςʔϒϧͷ݁߹͕Ͱ͖ͳ͍ ɾυΩϡϝϯτͷࢀরΛϓϩύςΟʹηοτ Ͱ͖Δ(ࢀরܕ)͚ͲΫΤϦճ͕૿͑Δ ɾҰճͷΫΤϦͰσʔλΛऔΓ͍ͨͷͰ͋͑ͯ ʹ͍ͯ͠Δ
20 ߹ੑͲ͏ղܾ͢Δͷʁ
21 Cloud Functions for Firestore
22 Cloud Functions for Firestore ɾFirestoreͷΠϕϯτΛݕͯ͠ҙͷjavaScriptίʔυΛ ࣮ߦͰ͖Δ ɾόοΫΞοϓऔͬͨΓɺϓογϡ௨ΛૹͬͨΓͰ ͖Δ
࣍ 23 ɾFirestoreͱʁ ɾσϞ ɾͲ͏ͬͯ࡞Δͷʁ ɾ·ͱΊ
24 ·ͱΊ ɾFirestoreNoSQLͳϦΞϧλΠϜΫϥυσʔλϕʔε ɾίϨΫγϣϯͱυΩϡϝϯτͰσʔλΛදݱ͢Δ ɾσʔλߏߟ͑Δඞཁ͕͋Δ ɾFirebaseͷଞͷαʔϏεͱ࿈ܞ͓ͤͯ͞͏
25 ϝϦʔΫϦεϚε
26 ͓ΘΓ