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

RealtimeDB.Firebase.ebisu

F45851534f21f9469d296950653464be?s=47 1amageek
October 21, 2016

 RealtimeDB.Firebase.ebisu

Firebase RealtimeDBを利用の考察

F45851534f21f9469d296950653464be?s=128

1amageek

October 21, 2016
Tweet

Transcript

  1. Timers inc RealtimeDB.Firebase.ebisu nori Oct 2016 @1amageek ! Hello. Firebase.ebisu

    "
  2. Timers inc Why Firebase?

  3. Timers inc Why Firebase? Speed up the development cycle

  4. Timers inc REST API ❌ %FWFMPQNFOU *OGSB 4FSWFSSFRVJSFE %BUBCBTF

  5. Timers inc Serverless

  6. Timers inc Create Valuable Service

  7. Timers inc

  8. Timers inc Next Generation Database Auto Sync

  9. Timers inc Auto Sync /PIUUQSFRVFTU 0CTFSWJOH &WFOUESJWFO 3FBMUJNF

  10. Timers inc vs

  11. Timers inc 'BTU 'SJFOEMZ 'SFF .BOZVTFST 0OMZEBUBCBTF 4FSWFSSFRVJSFE 'BTU 'SJFOEMZ

    'SFF .BOZVTFST 5PUBMQMBUGPSN 4FSWFSMFTT ✔ ✔
  12. Timers inc Timers’ case ϢʔβʔͷߦಈΛ௨஌͢Δػೳ

  13. Timers inc "VUIFOUJDBUJPO 4DIFNFMFTT *TTVFT 1FSGPSNBODF .JHSBUJPO -PHHJOH 4FDVSJUZ

  14. Timers inc "VUIFOUJDBUJPO 4DIFNFMFTT 1FSGPSNBODF .JHSBUJPO -PHHJOH 4FDVSJUZ طଘͷγεςϜ͔ΒͷҠߦ ηΩϡΞͳ؀ڥ͸࡞ΕΔ͔

    ࣗ༝౓͕ߴ͍͜ͱ͸ɺ։ൃͷ෯Λ޿͛Δ͕ όάΛੜΈ΍͍͢ ࣮༻ʹରԠͰ͖Δͷ͔ɺੑೳྼԽ͠ͳ͍͔ ࣗࣾαʔϏεͰ͸ͳ͍͕ɺͲͷΑ͏ʹ-PHΛ நग़͢Δ͔ αʔϏεͷਐԽʹ߹Θͤͯॊೈʹ ରԠͰ͖Δ͔
  15. Timers inc $VTUPN"VUIFOUJDBUJPO4ZTUFN "VUIFOUJDBUJPO Server Client Server Client Token Token

    FirebaseToken Firebase FirebaseToken #FGPSF "GUFS
  16. Timers inc 3FBMUJNF%BUBCBTF3VMFT 4FDVSJUZ data $00 Auth data $01 data

    $02 Read : Write Read Write
  17. Timers inc 4PMVUJPO-JCSBSZ4BMBEB 4DIFNFMFTT nori Oct 2016 @1amageek https://github.com/1amageek/Salada

  18. Timers inc 3FBMUJNF%BUBCBTF 1FSGPSNBODF T

  19. Timers inc 0CTFSWF -PHHJOH FIRDatabase .database() .reference() .child(“YOUR_REFERENCE_KEY”) .observe(.childAdded, with:

    { (snapshot) in log(snapshot) })
  20. Timers inc 0CTFSWF .JHSBUJPO let ref: FIRDatabaseReference = FIRDatabase.database().reference() let

    ref_A: FIRDatabaseReference = ref.child("YOUR_REFERENCE_KEY_A”) let ref_B: FIRDatabaseReference = ref.child(“YOUR_REFERENCE_KEY_B”) ref_A.observeSingleEvent(of: .value, with: { (snapshot) in ref_B.setValue(snapshot.value) })
  21. Timers inc Thank you $