Firebase Authentication & Firebase Realtime Database setup

Firebase Authentication & Firebase Realtime Database setup

umeda.apk #2 LT Slide
Content is Firebase DB & Auth Easy Setup And Description

Ac6f0faaab626a101cab97cab29f086f?s=128

katsuki-nakatani

August 05, 2016
Tweet

Transcript

  1. 'JSFCBTF"VUIFOUJDBUJPO 'JSFCBTF%BUBCBTFTFUVQ  VNFEBBQL

  2. TFMGJOUSPEVDUJPO UXJUUFS!,BUTVLJ/BLBUBOJ 'BDFCPPL,BUTVLJ/BLBUBOJ ͓࢓ࣄ େࡕͷ4*FSͰओʹΠϯϑϥͷߏஙʢΤϯϓϥ԰͞ΜʣΛ͍ͯ͠·͢ɻ த୩ࠀل ໊લ .PCJMFΞϓϦΛݸਓ։ൃͯ͠·͢ "OESPJEͱͪΐͬͱ681ͱJ04 ࠷ۙ"OHVMBS͸͡Ί·ͨ͠

    झຯ
  3. 5IFNF ,FZ7BMVFͷσʔλϕʔεαʔϏε

  4. ,FZ7BMVF%BUBCBTF ࠓ·Ͱɺ๻ͷੈքʹ͍ͨσʔλϕʔεͱ͍͏੡඼͸͜Ε ͍ΘΏΔ3FMBUJPOBM%BUBCBTFͱ͍͏੡඼ͨͪ 3PX *E ੏ ໊   ࢁా

    ଠ࿠   ླ໦ Ұ࿠   খྛ ࡾ࿠   VNFEB BQL
  5. 8IBUT,FZ7BMVF%BUBCBTF 'JSFCBTFͷ,FZ7BMVFσʔλϕʔε

  6. 4FUVQ

  7. 45&1 ˞"OESPJE4UVEJPͱ(PPHMFΞΧ΢ϯτ͕ϦϯΫ͞Ε͍ͯͳ͍৔߹͸ɺ8FCαΠτʹભҠ͠ɺ ɹར༻͢ΔݖݶΛঝೝ͢Δඞཁ͕͋Γ·͢

  8. 45&1

  9. 'JOJTI 'JSFCBTF઀ଓ༻ͷKTPOϑΝΠϧ͕μ΢ϯϩʔυ͞Εͯࣗಈ௥Ճ͞ΕΔ

  10. "DDFTT'JSFCBTF$POTPMF ग़དྷͨ

  11. $SFBUF3VMFT ޙͰઆ໌͢ΔͷͰҰ୴εΩοϓ

  12. ࣮૷ͯ͠ΈΑ͏

  13. ࣮ߦ

  14. 1FSNJTTJPOEFOJFE 1FSNJTTJPOEFOJFE

  15. 3VMFͷొ৔

  16. 3VMFΛมߋͯ͠ΈΔ

  17. ࣮ߦ

  18. ࣮ߦ

  19. γϛϡϨʔλΛ࢖͓͏ ϧʔϧΛมߋͯ͠ެ։͢Δલʹ ࣄલʹߟ͍͑ͯΔϧʔϧ͕ਖ਼͍͔͠ νΣοΫ͕Ͱ͖·͢

  20. 8SJUF%BUB ϊʔυ಺ͷ஋Λ׬શʹมߋ͠·͢ %BUBCBTF3FGFSFODFQVTI %BUBCBTF3FGFSFODFTFU7BMVF 0CKFDUWBM %BUBCBTF3FGFSFODFVQEBUF$IJMESFO .BQ4USJOH 0CKFDUNBQ ϊʔυ໊ͱͯ͠ҰҙʹͳΔϊʔυΛऔಘͯ͘͠ΕΔ ϊʔυ಺ͷҰ෦ͷ஋Λมߋ͍ͨ͠৔߹

    NZ3FGSVO5SBOTBDUJPO OFX5SBOTBDUJPO)BOEMFS \ !0WFSSJEF QVCMJD5SBOTBDUJPO3FTVMUEP5SBOTBDUJPO .VUBCMF%BUBNVUBCMF%BUB \ SFUVSOOVMM ^ !0WFSSJEF QVCMJDWPJEPO$PNQMFUF %BUBCBTF&SSPSEBUBCBTF&SSPS CPPMFBOC %BUB4OBQTIPUEBUB4OBQTIPU \ ^ ^  NZ3FGQVTI TFU7BMVF WBM ͷΑ͏ͳ࢖͍ํ %BUBCBTF3FGFSFODFSVO5SBOTBDUJPO )BOEMFSIBOEMFS ߋ৽࣌ͷτϥϯβΫγϣϯૢ࡞Λఏڙͯ͘͠ΕΔ
  21. 8SJUF%BUB σʔλ͸ޙड़ͷ3FBE%BUBͰऔಘ͢Δ͜ͱ͕Մೳ TFU7BMVF΍VQEBUF$IJMESFO͸-JTUFOFSͰߋ৽ޙॲཧΛͤ͞Δ͜ͱ͕Մೳ ߋ৽ޙ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S4JOHMF7BMVF&WFOU pOBM7BMVF&WFOU-JTUFOFSWBS  7BMVF&WFOU-JTUFOFSBEE7BMVF&WFOU-JTUFOFS 7BMVF&WFOU-JTUFOFSWBS

     3FGFSFODFͷࢠϊʔυͷมߋΛ؂ࢹ͠ଓ͚ΔͨΊͷϦεφʔ 3FGFSFODFͷมߋΛ؂ࢹ͠ଓ͚ΔͨΊͷϦεφʔ Լ̎ͭʹؔͯ͠͸3FGFSFODFʹରͯ͠3FNPWFΛݺ͹ͳ͍͔͗Γ؂ࢹ͠ଓ͚·͢ 3FGFSFODFʹSFNPWF&WFOU-JTUFOFS͕ੜ͍͑ͯΔͷͰɺඞͣࢭΊ·͠ΐ͏
  24. %FNP

  25. 5JQT ಉ͡σʔλΛී௨ʹߋ৽ͨ͠৔߹ɺߋ৽͸ޙউͪͱͳΔͷͰ5SBOTBDUJPOͳͲ׆༻͠·͠ΐ͏ ॻ͖ࠐΈॲཧ࣌ʹΦϑϥΠϯͩͬͨ৔߹͸ࣗಈతʹΦϯϥΠϯ࣌ʹͳͬͨ৔߹ʹߋ৽ॲཧ͕ಈ͘ ͷͰ࠶ૹॲཧͳͲؾʹ͠ͳͯ͘΋ྑ͍Ͱ͢

  26. 'JSFCBTF"VUIFOUJDBUJPO

  27. 'JSFCBTF"VUIFOUJDBUJPO 'JSFCBTF3FBMUJNF%BUBCBTFͰར༻͢ΔೝূΛఏڙ͢Δػೳ

  28. 'JSFCBTF"VUIFOUJDBUJPO

  29. ରԠϓϩόΠμ

  30. &OBCMFE1SPWJEFS

  31. ೝূϞδϡʔϧ ͜ΕΒͷ1SPWJEFS͸'JSFCBTFϞδϡʔϧ͚ͩͰೝূͰ͖ΔΘ͚Ͱ͸ͳ͘ ೝূϓϩόΠμͷϞδϡʔϧͱ࿈ܞͯ͠ಈ࡞Λ͠·͢ IUUQTpSFCBTFHPPHMFDPNEPDTBVUI

  32. DPNHPPHMFpSFCBTFpSFCBTFBVUI DPNHPPHMFBOESPJEHNTQMB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EFOUJBM DSFEFOUJBM

     BEE0O$PNQMFUF-JTUFOFS UIJT OFX0O$PNQMFUF-JTUFOFS"VUI3FTVMU \ !0WFSSJEF QVCMJDWPJEPO$PNQMFUF !/PO/VMM5BTL"VUI3FTVMUUBTL \ JG UBTLJT4VDDFTTGVM \ ϩάΠϯ੒ޭ ^ ^ ^  (PPHMF4JHOJO"DDPVOUͷ5PLFOΛ$SFEFOUJBMͱͯ͠ɺ'JSFCBTF΁αΠϯΠϯ
  40. 4FUVQ"OESPJE$PEF !0WFSSJEF QVCMJDWPJEPO"VUI4UBUF$IBOHFE !/PO/VMM'JSFCBTF"VUIpSFCBTF"VUI \ 'JSFCBTF6TFSVTFSpSFCBTF"VUIHFU$VSSFOU6TFS  JG VTFSOVMM \

    ϩάΠϯͨ͠ ^FMTF\ ϩάΞ΢τͨ͠ ^ ^ ͜ΕͰɺ'JSFCBTF΁ͷαΠϯΠϯ͕׬ྃͰ͢ɻ "VUIΛ࣋ͬͨঢ়ଶͰɺ'JSFCBTF%BUBCBTF΁ΞΫηε͢Δͱɺ"VUIࡁΈͱͯ͠ಈ࡞͠·͢
  41. %FNP αϯϓϧίʔυͷϧʔϧͰ͢

  42. 5JQT ໌ࣔతʹαΠϯΞ΢τ͠ͳ͍͔͗ΓɺαΠϯΠϯঢ়ଶ͸ଓ͖·͢ɻ αΠϯΞ΢τͤ͞Δ৔߹͸ɺ'JSFCBTF"VUIͱɺ1MBZ4FSWJDF"VUI྆ํαΠϯΞ΢τ͍ͤͯͩ͘͞͞ αϯϓϧίʔυʹ͸࣮૷͍ͯ͠ΔͷͰ֬ೝͯ͠Έ͍ͯͩ͘͞

  43. ·ͱΊ ͱͯ΋୹͍ίʔυͰαʔόʹσʔλΛอଘͰ͖Δ ෳࡶͳೝূॲཧ΍ύεϫʔυ؅ཧ͸ؾʹ͠ͳͯ͘ྑ͍ ͨͩ͠ɺϧʔϧͷ࡞੒΍ɺσʔλͷҰ؏ੑɺσʔλͷ࣋ͪํͳͲ ͔ͬ͠Γߟ͑ͳ͍ͱτϥϒϧՄೳੑ͕͋ΔΑ͏ͳؾ͕͠·͢ ΦϑϥΠϯ࣌ͷ࠶ૹॲཧ΋ؾʹ͠ͳ͍͍ͯ͘ 5SZ'JSFCBTF3FBMUJNF%BUBCBTF'JSFCBTF"VUIFOUJDBUJPO αϯϓϧίʔυ IUUQTHJUIVCDPNLBUTVLJOBLBUBOJ'JSFCBTF%C4BNQMF"QQ

  44. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠