Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Firestore開発の効率的な進め方を 完全に理解した

Firestore開発の効率的な進め方を 完全に理解した

完全に理解したTalkの28回目開催回のトーク資料です。

#firebase
#firestore
#完全に理解したTalk

97a7f7899e0df28c3636b8d44bbe6578?s=128

Kenichi Kambara

April 28, 2022
Tweet

More Decks by Kenichi Kambara

Other Decks in Technology

Transcript

  1. 2022.04.28 ਆݪ ݈Ұ (@korodroid) Firestore։ൃͷޮ཰తͳਐΊํΛ ׬શʹཧղͨ͠ ʮʓʓ׬શʹཧղͨ͠ʯTalkɹ#28

  2. About me •Mobile App Development •Speeches (e.g. 9 International confs.)

    •Writings (e.g. 6 Dev Books) •[Of fi cial] Evangelist at NTT TechnoCross •[Private] iplatform.org •My Interest: Travelling/English/Running ਆݪɹ݈Ұ (@korodroid)
  3. About my product (Private works) Sekaiphone(Kotlin/Swift/Flutter+Firebase)

  4.  Cloud Firestore Frontend Backend NoSQL Database

  5.  FirestoreͰ͓͍͑ͨ͞3ͭͷϙΠϯτ 1. ֓ཁ&σʔλߏ଄ 2. ηΩϡϦςΟϧʔϧ 
 3. ։ൃʹศརͳTips 


  6.  1. ֓ཁ&σʔλߏ଄ Frontend Backend

  7.  σʔλͷ࣋ͨͤํ(·ͣ͸ɺΠϝʔδ) Ϣʔβ [n] Todoσʔλ [m]

  8.  FirestoreͰ͓͍͑ͨ͞Ωʔϫʔυ collection document data ->ToDoσʔλn݅(ू߹) ->ToDoσʔλ1݅ ->ToDoσʔλ಺ͷ1߲໨

  9.  Firestore্Ͱͷσʔλͷ࣋ͨͤํ collection document collection document document collection document

  10.  σʔλͷ࣋ͨͤํͷ࣮ݱྫ collection document Ϣʔβ [n] Todoσʔλ [m]

  11.  2. ηΩϡϦςΟϧʔϧ Firestore΁ͷΞΫηε੍ޚ

  12.  ηΩϡϦςΟϧʔϧͷఆٛྫ(͋͘·Ͱྫ) ྫ ࢦఆ೔·Ͱ͸ ೝূࡁϢʔβͳΒ ʢ୭Ͱ΋ SFBEXSJUFͱ΋0, ࢦఆ೔ΑΓલͳΒ ୭Ͱ΋ SFBEXSJUFͱ΋0,

    ※࣮ࡍ͸ɺ֤ύεʹରͯ͠ద੾ͳΞΫηεݖΛઃఆඞਢʂ
  13.  3. ։ൃʹศརͳTips •Ϋϥ΢υ؀ڥʢςετ༻/ຊ൪༻ͳͲʣ 
 •ϩʔΧϧ؀ڥʢ։ൃ༻్ʣ

  14.  Ϋϥ΢υ؀ڥɿRules Playground wHFU wDSFBUF wVQEBUF wEFMFUF ύε ೝূؔ࿈ EFCVH

    ؔ਺΋ศར
  15.  ϩʔΧϧ؀ڥɿFirebase Local Emulator Suite

  16.  ϩʔΧϧ؀ڥͷ४උ/࣮ߦ (1)Firebase CLIͷΠϯετʔϧ %curl -sL firebase.tools | bash 


    (2)FirebaseϓϩδΣΫτͱͯ͠ͷॳظԽ(ະ࣮ࢪͷ৔߹) %firebase init (3)Firebase Emulatorͷىಈ %firebase emulators:start ग़యɿFirebaseެࣜαΠτ
  17.  ϩʔΧϧ؀ڥΛ࢖ͬͯศརͩͬͨ͜ͱ •ଞͷڞಉ։ൃऀΛؾʹͤͣ։ൃͰ͖Δ •(Ϋϥ΢υ؀ڥͱൺֱͯ͠)σόοά͠қ͍ •Ϋϥ΢υ؀ڥͷίετΛؾʹͤͣ࢖͑Δ

  18.  ར༻Πϝʔδ(Authenticationͷ৔߹)

  19.  ར༻Πϝʔδ(Firestoreͷ৔߹)

  20. ·ͱΊ •Firestore্Ͱͷσʔλͷ࣋ͨͤͨํ •ΞΫηε੍ޚ͸ɺηΩϡϦςΟϧʔϧͰ •ϩʔΧϧΤϛϡϨʔλ׆༻ͰΑΓޮ཰తʹ։ൃՄೳ 

  21.  Please let me know if you have any requests

    
 such as technical speeches, technical writings and so on. Facebook:http://fb.com/kanbara.kenichi Twitter:@korodroid LinkedIn:http://www.linkedin.com/in/korodroid Thank you so much