SlideShare a Scribd company logo
Firebase
Not really yohoho, but Yarr
“one strange pirate notes”
Questions
1. Dive into Real Time Cloud Database
2. CRUD and Data Retrieving
3. Authentication and Security
4. Special Features you would like to use
5. Modules
Break Points
1. Main Goals
2. Firebase as Service Provider
3. Get it Working
4. Play Around
5. Something special
6. Pros and Cons
7. What are we waiting for?
8. Conclusion
Main Goals
- provide with short review of technologie
- play around and show examples
- provide with directions of using Firebase
- conclude everything
Firebase as Service Provider
Main Information
Firebase is a cloud services provider and backend as a service company
based in San Francisco, California. The company makes a number of
products for software developers building mobile or web applications.
Firebase was founded in 2011 by Andrew Lee and James Tamplin and
launched with a real time cloud database in April 2012. © Wikipedia
Firebase as Service Provider
Services:
- Real Time Database Provider
- Hosting
- Simple Login
Firebase as Service Provider
Real Time Database Provider
Firebase provides a realtime database and backend as a service. The
service provides application developers an API that allows application
data to be synchronized across clients and stored on Firebase's cloud.
© Wikipedia
Firebase as Service Provider
Languages:
- Java Script
- Android
- iOS
- Node.js
- Java
- Objective-C
Frameworks:
- Angular
- Ember
- Backbone
- React
Get it Working: Data
Data Storage:
- JSON-structed
- relative-oriented
How it works:
- pub/sub server
- web-sockets
Get it Working: Start
Installation:
- <script
src="https://cdn.firebase.com/js/client/2.2.4/firebase.js">
</script>
- bower install firebase
- npm install firebase
Get it Working: Create DB
1. Sign Up: https://www.firebase.com/
2. Create Database
Get it Working: Connect
Establish Database Connection:
let’s code, Yarr!
Play Around: CRUD
Create
Read
Update
Delete
Play Around: CRUD
CRUD in Firebase:
- flexible (as many ways as you can imagine)
- one method and a lot of results
Play Around: Create
Create:
- push();
- set();
Play Around: Create
push();
- soft insert: just adds a new object
Play Around: Create
before push(); after push();
Play Around: Create
unique ids
Play Around: Create
set();
- strong: replace all the existing data
Play Around: Create
before set(); after set();
Play Around: Create
push();
- adds new object
- assigns unique Id
set();
- replace referenced data by incoming
object
- doesn’t assign unique Id
Play Around: Events
Events:
- on/once ‘value’
- on/once ‘child_added’
- on/once ‘child_removed’
- on/once ‘child_moved’
Play Around: Data View
Data View:
- data snapshot
- val();
- exists()
- child();
- parent();
- hasChild();
- hasChildren();
- isNumbers();
- isString();
- isBoolean();
- isNumber();
- getPriority();
Play Around: Read
Read:
- on.(‘value’);
- on.(child_added’);
- on.(child_removed’);
- on.(‘child_changed’);
- on.(‘child_moved’);
Play Around: Read
on.(‘value’)
Play Around: Read
on.(‘value’)
Play Around: Read
on.(‘child_added’)
<= show object key
Play Around: Update
Update:
- update();
- set();
Play Around: Update
update();
new field
Play Around: Delete
Delete:
- remove();
Play Around: Delete
remove();
Play Around: Search
Search Process:
- no strong search queries
- no real search engine
Search Methods:
- on/once(‘value’)
- orderByChild(), orderByKey(), orderByValue(), orderByPriority()
- startAt(), endAt(), equalTo()
- limit(), limitToLast(), limitToFirst()
- ref()
Play Around: Search
Source Database:
Play Around: Search
orderByChild(); startAt(); endAt();
Play Around: Search
limitToFirst(); equalTo();
Play Around: Search
equalTo();
Play Around: Auth
Pretty-looking and Easy:
- automatic user creation
- service-side authentication
- multiple authentication methods
Authentication Methods:
- email and password (using pre-registered email and password)
- social network-based (Facebook, Google, Twitter, GitHub)
- anonymous (new session = new identifier)
- custom (using pre-generated token)
Play Around: Auth
Auth Settings:
Play Around: Auth
Create New User:
Play Around: Auth
User List:
Play Around: Auth
Authentication:
Play Around: Security
Access Permissions:
- .read
- .write
- .validate
- .indexOn
Variables:
- auth
- $location
- now
- root
- data
- new Data
Methods:
- val()
- child()
- parent()
- isNumber()
- isString()
- matches(regex)
Operators:
- +,-,*,/,%
- ===, !==, &&, ||, >, <
Play Around: Security
Play Around: Security
Security Rules:
Play Around: Security
Security Rules & Authentication:
- not authenticated user
Play Around: Security
Security Rules & Authentication:
- authenticated user
- read soldiers record
Play Around: Security
Security Rules & Authentication:
- authenticated user
- write soldiers record
Play Around: Security
- not flexible security rules
- breaks search ability
- complicated in configuration
- force to duplicate data
Something Special
onDisconnect():
- set();
- update();
- remove();
- cancel();
ServerValue:
- TIMESTAMP
databaseReference.child(‘.info’)
- authenticated
- connected
- serverTimeOffset
Pros and Cons
Pros:
- fast
- auto-scalable
- service-side process handling
- events-oriented
- build-in graphic editor
- easy to jump in
- user-friendly
- understandable API
Cons:
- poor search engine
- no map reduce implemented
- no reference or join functionality
- not counted amount of
connections
Pros and Cons
Free Trial Plan:
- 50 connections
- 5 GB Data Transfer
- 100 MB Data Storage
- 1 GB Hosting Storage
- 100 GB Hosting Transfer
Paid Plans:
https://www.firebase.com/pricing.html
Modules
Module List:
https://github.com/firebase/geofire-js
https://github.com/firebase/vulcan
https://github.com/firebase/angularfire
More:
https://github.com/firebase
What are we waiting for?
- map reduce
- url handling
Links: no porn :(
https://www.firebase.com/
https://www.firebase.com/blog/
https://github.com/firebase/
Conclusion
var databaseReference = new Firebase(‘https://thanks.for.listening/’);
databaseReference.set({
conclusion: ‘think on your own’
});
Put Something Here
var presentation = {
author: {
name: ‘Roman Sachenko’,
email: ‘roman.sachenko@gmail.com’,
skype: ‘roman.sachenko’,
statusMessage: ‘there is no way, but the hard way’
},
subject: ‘Firebase: not really yohoho, but
yarr’,
date: new Date(‘2015/04/30’),
};
DA-14 2015 Roman Sachenko

More Related Content

PDF
Firebase_not_really_yohoho
PPTX
Capture, record, clip, embed and play, search: video from newbie to ninja
PDF
Node.js 與 google cloud storage
PDF
Big Master Data PHP BLT #1
PDF
[WLDN] Supercharging word press development in 2018
PDF
Using OpenStack With Fog
PDF
12 core technologies you should learn, love, and hate to be a 'real' technocrat
DOCX
SCasia 2018 MSFT hands on session for Azure Batch AI
Firebase_not_really_yohoho
Capture, record, clip, embed and play, search: video from newbie to ninja
Node.js 與 google cloud storage
Big Master Data PHP BLT #1
[WLDN] Supercharging word press development in 2018
Using OpenStack With Fog
12 core technologies you should learn, love, and hate to be a 'real' technocrat
SCasia 2018 MSFT hands on session for Azure Batch AI

What's hot (20)

KEY
Authentication
PDF
Getting started with DataStax .NET Driver for Cassandra
PPTX
Bases de Datos NoSQL
PPTX
Async servers and clients in Rest.li
PDF
AWS 9월 웨비나 | AWS Lambda@Edge를 통한 엣지 컴퓨팅 서비스
KEY
Google
PDF
Terraform Cosmos DB
PDF
[JSDC 2016] Codex: Conditional Modules Strike Back
PDF
NoSQL & MongoDB
PDF
Node.js and Parse
PDF
Google cloud storage 講個祕訣
PDF
Intro to fog and openstack jp
PDF
12 core technologies you should learn, love, and hate to be a 'real' technocrat
PDF
Parse cloud code
PDF
Introduction to rest.li
PDF
Making connected apps with BaaS (Droidcon Bangalore 2014)
PDF
iCloud keychain
KEY
An introduction to CouchDB
PDF
smartdc by Ruby
PDF
Building Android apps with Parse
Authentication
Getting started with DataStax .NET Driver for Cassandra
Bases de Datos NoSQL
Async servers and clients in Rest.li
AWS 9월 웨비나 | AWS Lambda@Edge를 통한 엣지 컴퓨팅 서비스
Google
Terraform Cosmos DB
[JSDC 2016] Codex: Conditional Modules Strike Back
NoSQL & MongoDB
Node.js and Parse
Google cloud storage 講個祕訣
Intro to fog and openstack jp
12 core technologies you should learn, love, and hate to be a 'real' technocrat
Parse cloud code
Introduction to rest.li
Making connected apps with BaaS (Droidcon Bangalore 2014)
iCloud keychain
An introduction to CouchDB
smartdc by Ruby
Building Android apps with Parse
Ad

Viewers also liked (20)

PDF
Burabodpdf
PDF
Sprawozdanie 2011
PDF
13.02.2014 odf ukraine_attacks_on_journalists_en
PDF
06.02.2014 odf ukraine_military_scenario_pl
DOCX
Yd0207142 sineo223 op14070113390_ua
PDF
Windows sharing
PPT
Paskaita nr6 protokolai_ip
PDF
Elektroninio pasto klientu_konfiguravimas
PDF
25 04-2014-odf-45-dney-okkupacii-kryma-rossiey-ua
PDF
Advenuture tourism: The role of social comparison theory in successful advert...
PDF
Pagrindines unix tinklo ir pagrkomandos
PPTX
Berg ellen cal epa 29 oct2014
PPTX
Nanigans - DDM Alliance Summit Marketing on Facebook
ODP
Diaporama British Museum
PDF
Sprawozdanie merytoryczne 2010
PPT
Paskaita nr7 windows_os
PDF
К. Скобеев: "Точки роста проекта без ссылок"
PPTX
Παρουσίαση αποτελεσμάτων Σ.Κ.Ζ.
PDF
D link dir_300
PDF
Willem Rengers - ludodidactiek
Burabodpdf
Sprawozdanie 2011
13.02.2014 odf ukraine_attacks_on_journalists_en
06.02.2014 odf ukraine_military_scenario_pl
Yd0207142 sineo223 op14070113390_ua
Windows sharing
Paskaita nr6 protokolai_ip
Elektroninio pasto klientu_konfiguravimas
25 04-2014-odf-45-dney-okkupacii-kryma-rossiey-ua
Advenuture tourism: The role of social comparison theory in successful advert...
Pagrindines unix tinklo ir pagrkomandos
Berg ellen cal epa 29 oct2014
Nanigans - DDM Alliance Summit Marketing on Facebook
Diaporama British Museum
Sprawozdanie merytoryczne 2010
Paskaita nr7 windows_os
К. Скобеев: "Точки роста проекта без ссылок"
Παρουσίαση αποτελεσμάτων Σ.Κ.Ζ.
D link dir_300
Willem Rengers - ludodidactiek
Ad

Similar to Firebase not really_yohoho (20)

PDF
Firebase in action 2021
PPTX
Firebase - cloud based real time database
PPTX
Firebase - A real-time server
PPTX
Introduction to Firebase
PDF
Introduction, Examples - Firebase
PPTX
Intoduction of FIrebase Realtime Database
PDF
Firebase Tech Talk By Atlogys
PDF
Online mobile game server use Firebase realtime aatabase
PDF
Introduction to Firebase
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...
PDF
MongoDB vs Firebase
PDF
Deploy Firebase Backend as a Service Model for Application Development
PPT
PDF
Google Firebase presentation - English
PPTX
What is new in Firebase?
PPTX
Google Firebase
PPTX
Introduction to Firebase (A Platform for developing apps) .pptx
PDF
Firebase-ized your mobile app
PPTX
Firebasics
Firebase in action 2021
Firebase - cloud based real time database
Firebase - A real-time server
Introduction to Firebase
Introduction, Examples - Firebase
Intoduction of FIrebase Realtime Database
Firebase Tech Talk By Atlogys
Online mobile game server use Firebase realtime aatabase
Introduction to Firebase
"Easy and scalable serverless backend for your next mobile or web app", Arman...
Workshop "Building Modern Web Applications with Firebase (and Angular)", Arm...
MongoDB vs Firebase
Deploy Firebase Backend as a Service Model for Application Development
Google Firebase presentation - English
What is new in Firebase?
Google Firebase
Introduction to Firebase (A Platform for developing apps) .pptx
Firebase-ized your mobile app
Firebasics

More from DA-14 (12)

PPTX
Express js clean-controller
PPTX
Express js api-versioning
PPTX
Tech talk Angular 2
PPTX
AngularJS: what is underneath the hood
PDF
Techtalk#8: Design patterns in real life
PPTX
Techtalk#7: Architecture principles by Steve McConnell's book "Code Complete"
PPTX
Mysql, MongoDb feat. Doctrine2
PPTX
Web Components: back to the future
PPTX
Techtalk#6: NodeJs: pitfalls (based on game project)
PPTX
JS Frameworks Day April,26 of 2014
PDF
TechTalk#2: Принципы управления временем
PDF
TechTalk#3: REST
Express js clean-controller
Express js api-versioning
Tech talk Angular 2
AngularJS: what is underneath the hood
Techtalk#8: Design patterns in real life
Techtalk#7: Architecture principles by Steve McConnell's book "Code Complete"
Mysql, MongoDb feat. Doctrine2
Web Components: back to the future
Techtalk#6: NodeJs: pitfalls (based on game project)
JS Frameworks Day April,26 of 2014
TechTalk#2: Принципы управления временем
TechTalk#3: REST

Recently uploaded (20)

PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
L1 - Introduction to python Backend.pptx
PDF
System and Network Administraation Chapter 3
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
System and Network Administration Chapter 2
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Introduction to Artificial Intelligence
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
L1 - Introduction to python Backend.pptx
System and Network Administraation Chapter 3
Navsoft: AI-Powered Business Solutions & Custom Software Development
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Odoo Companies in India – Driving Business Transformation.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
System and Network Administration Chapter 2
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
2025 Textile ERP Trends: SAP, Odoo & Oracle
How to Choose the Right IT Partner for Your Business in Malaysia
CHAPTER 2 - PM Management and IT Context
How Creative Agencies Leverage Project Management Software.pdf
Odoo POS Development Services by CandidRoot Solutions
Introduction to Artificial Intelligence
Upgrade and Innovation Strategies for SAP ERP Customers
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Operating system designcfffgfgggggggvggggggggg
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf

Firebase not really_yohoho