Firebase – cloud based 
real time database 
@glennbech (glenn.bech@inmeta.com) 
+glennbech
Inmeta 
• Consultancy company with “Senior profile” 
• 150 employees in Oslo and Trondheim 
• Strong focus on software development and services 
– Java 
– MS / .NET 
– SharePoint 
– Business Intelligence 
– Project management, test management & advisory 
– UX, interaction design, graphical design 
• Proud sponsors of “Baksia” Meetup / Oslo Solr community
me
After the presentation I hope you will 
• … Understand what Firebase is and what it can be used for 
• … Know how to get started with Angular and Firebase 
• … Be inspired to, hack and create cool real time apps
Cloud based 
real time database
Database 
• Dokumentbasert database 
(JSON)
Real time
Firebase - cloud based real time database
Skybasert
Example – San Fransisco Parking 
• Firebase comes with a build in editor/dashboard for every 
firebase 
• It is just another client consuming data 
• It is updated live- as the data in your firebase change 
• Let us have a peek at a public dataset, and create our own 
firebase 
https://publicdata-parking.firebaseio.com/
Other REAL 
WORLD 
examples
Twitch 
http://www.twitch.tv/twitchplayspokemon
Atlassian Stash 
https://www.youtube.com/watch?v=yOWTlFKoNV8#t=16
Firebase - cloud based real time database
How to create a new Firebase 
• Register at firebase.com 
• Create a new firebase through the dashboard 
• Create some data manually
Firebase Data 
• Up to 32 levels of nesting 
• 10mb limit on one node – base64 encode binary data 
• Can be read with client libraries or as JSON data over HTTP 
• No native Array support (AngularFire helps)…
Getting started with pure JS – what we will 
do 
• Create the simplest possible Firebase application using 
Javascript 
• Write data 
• Read real time data 
• Do basic Search with selection and sorting
Firebase - cloud based real time database
Summary – write 
• Push – creates a new Node with a constructed increasing id 
• Set – writes data 
• Push with implicit Set is common 
• Update 
• Transaction
Summary of read operations 
Ref.on() 
– Value 
– Child_added 
– Child_changed 
– Child_removed 
– Child_moved 
• Ref.once() 
• Ref.off()
Summary - Queries and search 
Sorting combined with Selection give basic data retrieval 
functionality 
• orderByKey() - default 
• orderByChild() 
• orderByPriority() 
• limittoFirst() 
• limitToLast() 
• startAt() 
• endAt() 
• equalTo()
Getting started – Firebase hosting & 
AngularFire 
• Firebase will host your static web application for you 
• Included in the cost of the firebase 
• Command line tool 
• Bootstrap for popular languages like Angular, react, backbone etc 
• AngularFire is an Open Source Library maintained by the 
Firebase Team
Firebase hosting – what we will do 
• Create a brand new Firebase 
• Use the Firebase command line tool to create a new hosted 
application for our firebase 
• Bootstrap the app using an Angular.js template
Firebase - cloud based real time database
Angularfire – the simplest possible app – 
What we will do 
• Import interesting data into our firebase 
• Use AngularFire to iterate over and filter a synchronized array
Data Import 
- Fetch json data from New York times news API 
- Pipe it to our Firebase 
curl http://api.nytimes.com/svc/news/v3/content/all/all.json?api-key= 
944c7ada3d8a94c65f416f923f1037e5%3A16%3A70241427 | 
curl -X PUT -d @- https://thenewsdatabase.firebaseio.com/.json
Firebase - cloud based real time database
Three way data binding with AngularFire 
• Firebase object references can be bound to the $scope 
• Data gets updated in the view- and on the server at the same 
time 
• Might NOT be what you actually want. Beware!
Firebase - cloud based real time database
Architecture 
considerations
Simple 2-tier Architecture
Server / Client share Firebase
Firebase handle Realtime, your server the 
rest 
*Twitch
Firebase with search engine 
Read Real time updates 
App-server 
Writes 
Query & 
Writes 
Read Real time updates 
Indexes
Interesting links 
• https://www.firebase.com/docs/web/libraries/angular/index.html 
• https://www.firebase.com/blog 
• https://chrome.google.com/webstore/detail/vulcan-by-firebase/ 
oippbnlmebalopjbkemajgfbglcjhnbl?utm_source=chrome 
-ntp-icon 
• https://www.firebase.com/blog/2014-10-03-major-updates-to-firebase- 
user-auth.html

More Related Content

PPT
Firebase presentation
PPTX
Introduction to Firebase
PDF
Database, data storage, hosting with Firebase
PDF
Firebase
PPTX
Firebase Database 둘러보기
PPTX
FCM알아보기
PDF
MongoDB World 2018: Data Models for Storing Sophisticated Customer Journeys i...
PPTX
Azure functions
Firebase presentation
Introduction to Firebase
Database, data storage, hosting with Firebase
Firebase
Firebase Database 둘러보기
FCM알아보기
MongoDB World 2018: Data Models for Storing Sophisticated Customer Journeys i...
Azure functions

What's hot (16)

PDF
Altitude San Francisco 2018: Scale and Stability at the Edge with 1.4 Billion...
PDF
Firebase - realtime backend for mobile app and IoT
PPTX
Serverless with Azure Functions
PPTX
Alfresco & Blockchain
PPTX
Azure Media Services & Azure Search
PPTX
Firebase Authentication with Android
PDF
Ryan Brown - Open Community
PDF
Making Sense of Serverless Computing
PDF
Firebase slide
PPTX
End-to-end test automation with Endtest.dev
PPTX
Dsc Firebase Introduction
PDF
Azure for AWS & GCP Pros: Which Azure services to use?
PPTX
Serverless
PDF
A quick introduction to AWS Lambda
PPTX
AWS Kinesis
PDF
Architecture Battle: PaaS vs. FaaS
Altitude San Francisco 2018: Scale and Stability at the Edge with 1.4 Billion...
Firebase - realtime backend for mobile app and IoT
Serverless with Azure Functions
Alfresco & Blockchain
Azure Media Services & Azure Search
Firebase Authentication with Android
Ryan Brown - Open Community
Making Sense of Serverless Computing
Firebase slide
End-to-end test automation with Endtest.dev
Dsc Firebase Introduction
Azure for AWS & GCP Pros: Which Azure services to use?
Serverless
A quick introduction to AWS Lambda
AWS Kinesis
Architecture Battle: PaaS vs. FaaS
Ad

Viewers also liked (20)

PPTX
Firebase - A real-time server
PDF
Introduction to Firebase from Google
PDF
Introduction to Firebase on Android
PPTX
Introduction to Firebase [Google I/O Extended Bangkok 2016]
KEY
Firebase
PDF
Firebase Cloud Messaging for iOS
PPTX
Real time databases
PDF
Introduction to Firebase with Android and Beyond...
PPTX
Real time database (MDARTS)
PDF
Realtime Database with iOS and Firebase
PDF
Real-time or full-precision CRS imaging using a cloud computing portal: multi...
PDF
Introducing Firebase by Google
PPTX
KEY
Improving Android Text Layout in Localisation
PDF
Helsinki Serverless Meetup 15.6.2016 : AWS Services
PPTX
Android studio 之 fcm 推播服務
PPTX
PDF
Firebase Adventures - Going above and beyond in Realtime
PDF
Firebase初心者からみたFirebase
PPTX
Android Firebase
Firebase - A real-time server
Introduction to Firebase from Google
Introduction to Firebase on Android
Introduction to Firebase [Google I/O Extended Bangkok 2016]
Firebase
Firebase Cloud Messaging for iOS
Real time databases
Introduction to Firebase with Android and Beyond...
Real time database (MDARTS)
Realtime Database with iOS and Firebase
Real-time or full-precision CRS imaging using a cloud computing portal: multi...
Introducing Firebase by Google
Improving Android Text Layout in Localisation
Helsinki Serverless Meetup 15.6.2016 : AWS Services
Android studio 之 fcm 推播服務
Firebase Adventures - Going above and beyond in Realtime
Firebase初心者からみたFirebase
Android Firebase
Ad

Similar to Firebase - cloud based real time database (20)

PDF
Angular - Chapter 6 - Firebase Integration
PPTX
Angular material,firebase, and angularfire
PPTX
Python integration with firebase
PDF
Getting started with Firebase
PPTX
SharePoint Conference North America 2018 - Las Vegas - Announcements
PDF
Building APIs in an easy way using API Platform
PPTX
D2 - Automate Custom Solutions Deployment on Office 365 and Azure - Paolo Pia...
PDF
Which database should I use for my app?
PDF
Firebase in action 2021
PPTX
Introduction to Neo4j and .Net
PDF
Working with Data in Service Workers
PPTX
Azure Functions Real World Examples
PPTX
04 integrate entityframework
PPTX
Untangling spring week11
PPTX
Build Modern Web Apps Using ASP.NET Web API and AngularJS
PDF
"Easy and scalable serverless backend for your next mobile or web app", Arman...
PDF
Workshop "Building Modern Web Applications with Firebase (and Angular)", Arm...
PPTX
Intoduction of FIrebase Realtime Database
PDF
Couchbase Chennai meetup #3 What's new in Couchbase Server & Couchbase Mobile
PDF
NoSQL on ACID - Meet Unstructured Postgres
 
Angular - Chapter 6 - Firebase Integration
Angular material,firebase, and angularfire
Python integration with firebase
Getting started with Firebase
SharePoint Conference North America 2018 - Las Vegas - Announcements
Building APIs in an easy way using API Platform
D2 - Automate Custom Solutions Deployment on Office 365 and Azure - Paolo Pia...
Which database should I use for my app?
Firebase in action 2021
Introduction to Neo4j and .Net
Working with Data in Service Workers
Azure Functions Real World Examples
04 integrate entityframework
Untangling spring week11
Build Modern Web Apps Using ASP.NET Web API and AngularJS
"Easy and scalable serverless backend for your next mobile or web app", Arman...
Workshop "Building Modern Web Applications with Firebase (and Angular)", Arm...
Intoduction of FIrebase Realtime Database
Couchbase Chennai meetup #3 What's new in Couchbase Server & Couchbase Mobile
NoSQL on ACID - Meet Unstructured Postgres
 

Recently uploaded (20)

PPTX
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx
PPT
Image processing and pattern recognition 2.ppt
PPTX
Caseware_IDEA_Detailed_Presentation.pptx
PDF
An essential collection of rules designed to help businesses manage and reduc...
PDF
Session 11 - Data Visualization Storytelling (2).pdf
PPT
statistics analysis - topic 3 - describing data visually
PPTX
chuitkarjhanbijunsdivndsijvndiucbhsaxnmzsicvjsd
PPTX
Lesson-01intheselfoflifeofthekennyrogersoftheunderstandoftheunderstanded
PDF
REAL ILLUMINATI AGENT IN KAMPALA UGANDA CALL ON+256765750853/0705037305
PPTX
CYBER SECURITY the Next Warefare Tactics
PPTX
recommendation Project PPT with details attached
PDF
©️ 02_SKU Automatic SW Robotics for Microsoft PC.pdf
PPTX
eGramSWARAJ-PPT Training Module for beginners
PDF
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
PPTX
MBA JAPAN: 2025 the University of Waseda
PPTX
Machine Learning and working of machine Learning
PDF
Best Data Science Professional Certificates in the USA | IABAC
DOCX
Factor Analysis Word Document Presentation
PPTX
statsppt this is statistics ppt for giving knowledge about this topic
PDF
Microsoft Core Cloud Services powerpoint
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx
Image processing and pattern recognition 2.ppt
Caseware_IDEA_Detailed_Presentation.pptx
An essential collection of rules designed to help businesses manage and reduc...
Session 11 - Data Visualization Storytelling (2).pdf
statistics analysis - topic 3 - describing data visually
chuitkarjhanbijunsdivndsijvndiucbhsaxnmzsicvjsd
Lesson-01intheselfoflifeofthekennyrogersoftheunderstandoftheunderstanded
REAL ILLUMINATI AGENT IN KAMPALA UGANDA CALL ON+256765750853/0705037305
CYBER SECURITY the Next Warefare Tactics
recommendation Project PPT with details attached
©️ 02_SKU Automatic SW Robotics for Microsoft PC.pdf
eGramSWARAJ-PPT Training Module for beginners
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
MBA JAPAN: 2025 the University of Waseda
Machine Learning and working of machine Learning
Best Data Science Professional Certificates in the USA | IABAC
Factor Analysis Word Document Presentation
statsppt this is statistics ppt for giving knowledge about this topic
Microsoft Core Cloud Services powerpoint

Firebase - cloud based real time database

  • 1. Firebase – cloud based real time database @glennbech (glenn.bech@inmeta.com) +glennbech
  • 2. Inmeta • Consultancy company with “Senior profile” • 150 employees in Oslo and Trondheim • Strong focus on software development and services – Java – MS / .NET – SharePoint – Business Intelligence – Project management, test management & advisory – UX, interaction design, graphical design • Proud sponsors of “Baksia” Meetup / Oslo Solr community
  • 3. me
  • 4. After the presentation I hope you will • … Understand what Firebase is and what it can be used for • … Know how to get started with Angular and Firebase • … Be inspired to, hack and create cool real time apps
  • 5. Cloud based real time database
  • 6. Database • Dokumentbasert database (JSON)
  • 10. Example – San Fransisco Parking • Firebase comes with a build in editor/dashboard for every firebase • It is just another client consuming data • It is updated live- as the data in your firebase change • Let us have a peek at a public dataset, and create our own firebase https://publicdata-parking.firebaseio.com/
  • 11. Other REAL WORLD examples
  • 15. How to create a new Firebase • Register at firebase.com • Create a new firebase through the dashboard • Create some data manually
  • 16. Firebase Data • Up to 32 levels of nesting • 10mb limit on one node – base64 encode binary data • Can be read with client libraries or as JSON data over HTTP • No native Array support (AngularFire helps)…
  • 17. Getting started with pure JS – what we will do • Create the simplest possible Firebase application using Javascript • Write data • Read real time data • Do basic Search with selection and sorting
  • 19. Summary – write • Push – creates a new Node with a constructed increasing id • Set – writes data • Push with implicit Set is common • Update • Transaction
  • 20. Summary of read operations Ref.on() – Value – Child_added – Child_changed – Child_removed – Child_moved • Ref.once() • Ref.off()
  • 21. Summary - Queries and search Sorting combined with Selection give basic data retrieval functionality • orderByKey() - default • orderByChild() • orderByPriority() • limittoFirst() • limitToLast() • startAt() • endAt() • equalTo()
  • 22. Getting started – Firebase hosting & AngularFire • Firebase will host your static web application for you • Included in the cost of the firebase • Command line tool • Bootstrap for popular languages like Angular, react, backbone etc • AngularFire is an Open Source Library maintained by the Firebase Team
  • 23. Firebase hosting – what we will do • Create a brand new Firebase • Use the Firebase command line tool to create a new hosted application for our firebase • Bootstrap the app using an Angular.js template
  • 25. Angularfire – the simplest possible app – What we will do • Import interesting data into our firebase • Use AngularFire to iterate over and filter a synchronized array
  • 26. Data Import - Fetch json data from New York times news API - Pipe it to our Firebase curl http://api.nytimes.com/svc/news/v3/content/all/all.json?api-key= 944c7ada3d8a94c65f416f923f1037e5%3A16%3A70241427 | curl -X PUT -d @- https://thenewsdatabase.firebaseio.com/.json
  • 28. Three way data binding with AngularFire • Firebase object references can be bound to the $scope • Data gets updated in the view- and on the server at the same time • Might NOT be what you actually want. Beware!
  • 32. Server / Client share Firebase
  • 33. Firebase handle Realtime, your server the rest *Twitch
  • 34. Firebase with search engine Read Real time updates App-server Writes Query & Writes Read Real time updates Indexes
  • 35. Interesting links • https://www.firebase.com/docs/web/libraries/angular/index.html • https://www.firebase.com/blog • https://chrome.google.com/webstore/detail/vulcan-by-firebase/ oippbnlmebalopjbkemajgfbglcjhnbl?utm_source=chrome -ntp-icon • https://www.firebase.com/blog/2014-10-03-major-updates-to-firebase- user-auth.html

Editor's Notes

  • #6: History
  • #16: Participants Delete data afterwards
  • #17: https://angularmeetup2.firebaseio.com/arraytest
  • #18: file:///Users/glennbech/dev/angularfiredemo/app/firebasepurejs.html
  • #20: Write operations succeed even if you are off line Events not yet seen are sent from the server when you connect
  • #21: var fb = new Firebase("https://simplefirebase.firebaseio.com/"); function addparticipant() { var messageRef = fb.push(); messageRef.set({name: document.getElementById("participant").value, age: parseInt(document.getElementById("age").value)}); } fb.on("child_added", function (snapshot) { console.log(snapshot.val()); });
  • #24: Create news firebase firebase bootstrap
  • #29: Open partifipants console
  • #32: Dumbed down firebase to a document store.