既存のプロジェクトに、Firestoreを導入してみた

55da8c5f4db8960f558336a502967187?s=47 sun54907
January 24, 2018

 既存のプロジェクトに、Firestoreを導入してみた

55da8c5f4db8960f558336a502967187?s=128

sun54907

January 24, 2018
Tweet

Transcript

  1. طଘͷϓϩδΣΫτʹ FirestoreΛಋೖͯ͠Έͨ

  2. ࣗݾ঺հ ւ઒ ࿨໻ (ג)ϚονϯάΤʔδΣ ϯτ @sun54907 ͳΊ͜

  3. None
  4. TL;DR ͜ͷεϥΠυͷํ๏Λ࢖͑͹؆୯ɻ2೔ͰͰ͖Δɻ https://speakerdeck.com/corin8823/torte-state β൛ͳͷͰɺಈ࡞อো͞Εͳ͍͜ͱʹ஫ҙ

  5. ͸͡Ίʹ

  6. ಋೖ͖͔͚ͨͬ͠

  7. None
  8. ΍ͬͨ͜ͱ νʔϜʹ෼͔ΕͯɺͦΕͧΕ͕ීஈͰ͖ͳ͍͜ͱ ʹऔΓ૊Μͩ ࢲͷνʔϜ͸ɺϦΞϧλΠϜ௨৴Λ࣮૷͢Δ

  9. πʔϧબ୒ ࣗલͰwebsocketΛ࣮૷ ֎෦αʔϏεΛ࢖͏ Realm Mobile Platform Firebase Realtime Database

  10. ໰୊ɺൃੜ

  11. ࣗલͰwebsocket࣮૷͸େมͦ͏… ֎෦αʔϏεʹϝοηʔδ౳ͷݸਓ৘ใΛࡌͤΔ ͷ͸৺഑… طଘͷ࢓૊ΈΛ࢒ͨ͠··ɺສ͕Ұͷ৔߹͸໭ͤ ΔΑ͏ʹ͓͖͍ͯͨ͠

  12. ղܾࡦ

  13. None
  14. IUUQTTQFBLFSEFDLDPNDPSJOUPSUFTUBUF ޙ൒ʮ౤ߘͷঝೝʯҎ߱ͷ࿩

  15. ϝοηʔδͷ৽ண݅਺Λ֎෦αʔϏεʹอଘ ΫϥΠΞϯτ͸ͦͷ஋Λ؂ࢹ αʔόʔଆͰ৽ண݅਺ΛΠϯΫϦϝϯτ ΫϥΠΞϯτ͸ͦΕΛݕ஌ͯ͠ɺapiΛୟ͍ͯߋ৽

  16. ϝοηʔδͷ৽ண݅਺Λ֎෦αʔϏεʹอଘ ΫϥΠΞϯτ͸ͦͷ஋Λ؂ࢹ αʔόʔଆͰ৽ண݅਺ΛΠϯΫϦϝϯτ ΫϥΠΞϯτ͸ͦΕΛݕ஌ͯ͠ɺapiΛୟ͍ͯߋ৽

  17. ͱ͍͏Θ͚Ͱ

  18. طଘͷϓϩδΣΫτʹ FirestoreΛಋೖͯ͠Έͨ

  19. None
  20. Firebase Cloud Firestore ϞόΠϧɺ΢Σϒɺαʔόʔ։ൃʹରԠͨ͠ɺॊೈ Ͱεέʔϥϒϧͳσʔλϕʔε ΦϑϥΠϯରԠ ߋ৽ΛϦΞϧλΠϜͰ௨஌ Firebase Realtime Database

    ͷޙܧ ·ͩЌ൛
  21. https://firebase.google.com/ docs/firestore/?hl=ja

  22. બΜͩཧ༝ Firebase͸ฐࣾͷ΄͔ϓϩδΣΫτͰ΋࢖ͬͯΔ Firebaseͷ΄͔ͷػೳ΋࢖͍͍ͨ β൛ͩͱͯ͠΋ɺ৽͍͠ػೳΛ࢖ͬͨํ͕ࠓޙָ ࠷ѱɺແ͘ͳͬͯ΋໰୊ͳ͍

  23. طଘϓϩδΣΫτʹ ಋೖ͢Δ࣌ͷϙΠϯτ

  24. ϙΠϯτ ৽ண݅਺͚ͩΛFireStoreʹอଘ ϢʔβʔೝূΛαʔόʔͰߦ͏

  25. Ϣʔβʔೝূ

  26. ೝূ Firebase ͷ Auth Λ࢖͏ αʔόʔ͔ΒΧελϜτʔΫϯΛൃߦ͠ɺͦΕΛ ࢖ͬͯΫϥΠΞϯτͰAuthೝূΛߦ͏

  27. None
  28. None
  29. None
  30. None
  31. None
  32. ࣮૷

  33. None
  34. None
  35. None
  36. None
  37. None
  38. ·ͱΊ

  39. ·ͱΊ ͜ͷํ๏Λ࢖͑͹؆୯ɻ2೔ͰͰ͖Δɻ https://speakerdeck.com/corin8823/torte-state β൛ͳͷͰɺಈ࡞อো͞Εͳ͍͜ͱʹ஫ҙ

  40. ͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠