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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
yuki-marume
December 25, 2018
0
250
クリぼっちLT.pdf
yuki-marume
December 25, 2018
Tweet
Share
More Decks by yuki-marume
See All by yuki-marume
FlutterMeetUp.pdf
maru01
0
150
あるあるLT.pdf
maru01
0
200
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
46
8k
エンジニアに許された特別な時間の終わり
watany
106
230k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.2k
Raft: Consensus for Rubyists
vanstee
141
7.3k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
Code Reviewing Like a Champion
maltzj
527
40k
So, you think you're a good person
axbom
PRO
2
1.9k
Scaling GitHub
holman
464
140k
KATA
mclloyd
PRO
34
15k
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 ͓ΘΓ