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
Building Adaptive Systems
keathley
43
2.7k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
The Cult of Friendly URLs
andyhume
79
6.5k
Writing Fast Ruby
sferik
628
62k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
4 Signs Your Business is Dying
shpigford
184
22k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Music & Morning Musume
bryan
46
6.6k
Testing 201, or: Great Expectations
jmmastey
43
7.6k
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 ͓ΘΓ