Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Firebase(Realtime Database)について
Search
S-cubism
November 24, 2017
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Firebase(Realtime Database)について
S-cubism
November 24, 2017
Transcript
9 slides
'JSFCBTF 3FBMUJNF%BUBCBTF ʹ͍ͭͯ ɹాকଠ
'JSFCBTFͱ w N#BB4 .PCJMF#BDLFOEBTB4FSWJDF w ʹ(PPHMF͕ങऩ͠ɺ($1ʹ౷߹͞Εͨ w ΞϓϦέʔγϣϯΛߏங͢Δࡍʹඞཁͳαʔόʔଆͷଟ͘ ͷػೳΛΫϥυαʔϏεͱͯ͠ఏڙͯ͘͠ΕΔ
'JSFCBTFͰఏڙ͞Ε͍ͯΔػೳ w ϦΞϧλΠϜσʔλϕʔε w ೝূ w ϗεςΟϯά w Ϋϥυϝοηʔδϯάʢ1VTI௨ʣ w
"OBMZUJDTʢΞϓϦͷ༻ঢ়گͳͲͷղੳʣ w ετϨʔδɹɹɹͳͲ
ϦΞϧλΠϜσʔλϕʔεͱ w ֤ΫϥΠΞϯτΫϥυ্ͷ%# /P42- ͷϩʔΧϧίϐʔ Λ࣋ͪɺ͜ͷϩʔΧϧίϐʔʹରͯ͠ಡΈॻ͖Λߦ͏ɻϩʔΧ ϧσʔλͷߋ৽ϦΞϧλΠϜͰΫϥυσʔλϕʔεͱಉظ ͕ߦΘΕΔɻ w ϩʔΧϧίϐʔΛ͍࣋ͬͯΔͷͰɺΦϑϥΠϯ࣌σʔλͷࢀ
র͕Ͱ͖ɺΦϯϥΠϯʹͳͬͨ࣌Ͱಉظ͕ߦΘΕΔɻ
ແྉൣғ w ϦΞϧλΠϜσʔλϕʔε w ಉ࣌ଓɺ༰ྔ(#ɺ௨৴ྉ(݄ w ϓϥϯͷ੍ݶΛ͑ͨ߹ɺΞϓϦͷిݯ͕ΦϑʹͳΔ Β͍͠ʢউखʹ༗ྉϓϥϯʹͳΒͳ͍ʣ
8FCΞϓϦͰͬͯΈΔ (PPHMFΞΧϯτͰϩάΠϯ ৽نϓϩδΣΫτ࡞ ʮΣϒΞϓϦʹ'JSFCBTFΛՃʯͰग़ͯ͘ΔλάΛຒ ΊࠐΉ ίϚϯυϥΠϯ
pSFCBTFUPPMT ͔ΒϗεςΟϯάˠσϓ ϩΠ
σʔλͷಡΈࠐΈ w 'JSFCBTFEBUBCBTF3FGFSFODFͷΠϯελϯεΛੜ // Get a reference to the database
service this.database = firebase.database(); w ϦιʔεͷύεΛࢦఆ this.messagesRef = this.database.ref(‘messages'); w ΠϯελϯεʹΠϕϯτϦεφʔΛՃ this.messagesRef.on('child_added', setMessage); //child_addedࢦఆͨ͠ύεʹ৽͍͠σʔλ͕Ճ͞Εͨ߹ʹ࣮ߦ͞ΕΔ
σʔλͷॻ͖ࠐΈ w ಉ͘͡'JSFCBTFʹର͢ΔϦϑΝϨϯεΠϯελϯεΛੜ w TFU ͰطଘͷσʔλͷஔΛߦ͏ function writeUserData(userId, name, email,
imageUrl) { firebase.database().ref('users/' + userId).set({ username: name, email: email, profile_picture : imageUrl }); } w QVTI Λ༻͢Δͱɺॻ͖ࠐΈ࣌ʹҰҙͷ*%͕ੜ͞Εɺڝ߹ΛΘͣʹෳͷΫϥΠ Ξϯτ͕ॻ͖ࠐΈΛߦ͏͜ͱ͕Ͱ͖Δ this.messagesRef.push({ name: currentUser.displayName, text: this.messageInput.value }).then(function() { }).catch(function(error) { console.error('Error writing new message to Firebase Database', error); });
·ͱΊ w ͔ͳΓ؆୯
More Decks by S-cubism
See All by S-cubism
WSLでreactの開発環境作った話
scubism
0
750
未経験者がAndroidアプリをリリースするまで
scubism
0
160
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
170
REVEAL.JSをちょっとだけ使ってみた
scubism
0
290
忙しい人のための仮想通貨
scubism
0
140
サーバ作業の注意コマンド
scubism
0
160
最近勉強してること、次にやりたいこと
scubism
0
130
FOOD TECH
scubism
0
83
複数会社複数リポジトリでのソース管理
scubism
0
110
Other Decks in Technology
See All in Technology
マネージャーをエスパーにしない マネジメントされる側から始める、働きやすい現場づくり
comi190327
1
830
3文字略語に騙されない! 世界一わかりやすい『EDR』超入門
kamadamakoto
1
280
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1k
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
3
790
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
0
290
エンタープライズ事業未経験のデータ屋、 AI時代にN回撃沈する.pdf
ryoskdara_
0
170
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
170
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
230
メール到達性を支える、リンク先URLのドメイン評価の扱い方
wind111
0
180
Gov-JAWS#9 統合監視機能のマネージドサービス化+AIによる障害時自動調査
fj_yoshimura_kosuke
0
220
農家は秘伝のタレを知らない - NOBODY KNOWS THE HIDDEN SOURCE - Kaggriculture 3rd Place Solution
masspeaks
3
640
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
380
Featured
See All Featured
KATA
mclloyd
PRO
35
16k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
600
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
400
Building the Perfect Custom Keyboard
takai
2
960
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
The Art of Programming - Codeland 2020
erikaheidi
57
15k
Discover your Explorer Soul
emna__ayadi
2
1.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
For a Future-Friendly Web
brad_frost
184
11k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
690
Chasing Engaging Ingredients in Design
codingconduct
0
400
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
430