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
210
クリぼっちLT.pdf
yuki-marume
December 25, 2018
Tweet
Share
More Decks by yuki-marume
See All by yuki-marume
FlutterMeetUp.pdf
maru01
0
130
あるあるLT.pdf
maru01
0
170
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
456
32k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
121
39k
In The Pink: A Labor of Love
frogandcode
138
21k
[RailsConf 2023] Rails as a piece of cake
palkan
23
4k
The Invisible Side of Design
smashingmag
294
49k
A Tale of Four Properties
chriscoyier
151
22k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
Fireside Chat
paigeccino
21
2.6k
The Language of Interfaces
destraynor
151
23k
Designing for humans not robots
tammielis
248
25k
Product Roadmaps are Hard
iamctodd
44
9.7k
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 ͓ΘΓ