SlideShare a Scribd company logo
Firebase defines for
everyone
By Apaichon Punopas
• Realtime Database call by API
• Store as JSON format
• Sync data from multiple applications
• Only write front end code
• Secure and monitor your data
• Access from everywhere
What is Firebase ?
• Originally referring to "non SQL", "non relational" or "not
only SQL"
• Simplicity of design, simpler "horizontal" scaling to
clusters of machines
• key-value, wide column, graph, or document
• "more flexible" than relational database tables
• Most NoSQL stores lack true ACID transactions
• Most NoSQL use JSON format
What is NO SQL ?
• This model organizes data into one or more tables
(or "relations") of columns and rows, with a unique
key identifying each row. Rows are also called
records or tuples.
What is Relational DB ?

Recommended for you

Firebase - A real-time server
Firebase - A real-time serverFirebase - A real-time server
Firebase - A real-time server

Want to build chat applications, online games and other exciting stuff? Firebase is here to help you developing all these amazing things. Go through these slides to learn about Firebase, and how to use it.

develop chatreal-time serverdevelop online games
Introduction to Firebase with Android and Beyond...
Introduction to Firebase with Android and Beyond...Introduction to Firebase with Android and Beyond...
Introduction to Firebase with Android and Beyond...

This document provides an introduction and overview of Firebase. It discusses how Firebase is a fully managed platform for building mobile and web apps that provides features like data synchronization, authentication, messaging, storage and analytics. It outlines Firebase's cross-platform capabilities and focus on developer experience. Several core Firebase features are described in more detail, including the realtime database, authentication, storage, hosting, remote config and analytics. Hands-on coding demos are presented using Firebase with Android, IoT devices and the web.

javabackendfirebase
Firebase Introduction
Firebase Introduction Firebase Introduction
Firebase Introduction

Introduction to Google Firebase. This presentation covers basic intro to Firebase and its services. To get started with Firebase : https://github.com/firebase/quickstart-js.git

firebasegoogledatabase
• Move fast
• Forget about infrastructure
• Make smart, data-driven decisions
• Work across platforms
• Free to start, scale with ease
Why use Firebase ?
Who use Firebase ?
• Single JSON format
Firebase structure
{"firstName":"John",
"lastName":"Doe" ,
"age":30 ,
"gender":"M" ,
“birthDay":"1/1/1986"
}
• Go to https://www.firebase.com/
• Click
• Click
• Fill Project Information
Register Firebase

Recommended for you

Firebase
FirebaseFirebase
Firebase

Firebase is a mobile and web application development platform that allows developers to build collaborative applications without writing server-side code. It provides features like authentication, a real-time database, file storage, hosting, and cloud messaging. Firebase was developed in 2011 and later acquired by Google in 2014.

androidfirebaserealtimedatatbase
Firebase in action 2021
Firebase in action 2021Firebase in action 2021
Firebase in action 2021

This document provides an overview of a Firebase workshop. It introduces Firebase services like Authentication, Realtime Database, Cloud Functions, and Cloud Storage. For each service, it discusses what it is, how it works, use cases, and recommendations for using it correctly. It also includes examples using Github repos. The workshop concludes with a Kahoot quiz and a request for feedback.

Firebase Analytics
Firebase AnalyticsFirebase Analytics
Firebase Analytics

This document discusses Firebase Analytics, a mobile analytics tool from Google. It provides an overview of Firebase Analytics, comparing it to other mobile analytics tools. It then discusses how Firebase Analytics can help understand user interactions with an app, popular devices, and user engagement. The document outlines the mobile app lifecycle and when Firebase Analytics is needed. It also summarizes what events and user properties are automatically tracked by Firebase Analytics and how users can extend measurements by defining custom events and properties. Finally, it provides brief descriptions of how to create a Firebase project, integrate the SDK, and connect Firebase to Google Analytics and BigQuery for additional analytics capabilities.

firebasefirebase analyticsfirebase events
Manual edit data
• Node.js is a server-side platform.
• Built on Google Chrome's JavaScript Engine (V8 Engine).
• It was developed by Ryan Dahl in 2009.
• It is an open source.
• Cross-platform runtime environment for developing
server-side and networking applications.
• Node.js uses an event-driven, non-blocking I/O model.
What is NodeJS ?
• The term I/O is used to describe any program,
operation or device that transfers data to or from a
computer and to or from a peripheral device.
What is I/O ?
• Most I/O requests are considered blocking
requests, meaning that control does not return to
the application until the I/O is complete. The
delayed from systems calls such read() and write()
can be quite long. Using systems call that block is
sometimes call synchronous programming.
What is Blocking I/O ?

Recommended for you

Database, data storage, hosting with Firebase
Database, data storage, hosting with FirebaseDatabase, data storage, hosting with Firebase
Database, data storage, hosting with Firebase

The document discusses Firebase features for database, data storage, and cloud hosting. It describes Firebase's real-time database, which allows syncing changed data in milliseconds across devices. It also covers Firebase storage, which provides robust, secure, and scalable file storage. Additionally, it mentions Firebase hosting, which allows for fast, secure content delivery and rapid website deployment through features like automatic SSL certificates and one-click rollbacks.

data storagefirebasehosting
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014

Swagger is a specification and complete framework implementation for describing, producing, consuming, and visualizing RESTful web services. The overarching goal of Swagger is to enable client and documentation systems to update at the same pace as the server. The documentation of methods, parameters, and models are tightly integrated into the server code, allowing APIs to always stay in sync. With Swagger, deploying managing, and using powerful APIs has never been easier.

apiswaggerrest
Firebase Auth Tutorial
Firebase Auth TutorialFirebase Auth Tutorial
Firebase Auth Tutorial

A simple how-to's on how to use Firebase Authentication Service using Android SDK, Facebook SDK & Firebase SDK.

androidmobile application developmentfirebase
• Programs that use non-blocking I/O tend to follow
the rule that every function has to return
immediately, i.e. all the functions in such programs
are nonblocking. Thus control passes very quickly
from one routine to the next.
What is non blocking I/O ?
1. Go to https://nodejs.org/en/download/
2. Choose NodeJS for your OS.
3. Extract file and Click on Installer package.
4. After finish installed then open terminal and type
command.
Installation NodeJS
>node -v
1. Create file name package.json
Integrate Firebase with
NodeJS #2
{
"name": "testfirebase",
"version": "1.0.0",
"description": "MyService is Rest Api Application for our core system.",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": [
"Test Firebase"
],
"author": “Your Name",
"license": "MIT",
"dependencies": {
"body-parser": ">= 1.14.2",
"express": "^4.14.0",
"firebase": "^3.5.2",
"guid": "latest"
}
}
2. Install NodeJS Package
3. Create file name “app.js” and put code following.
Integrate Firebase with
NodeJS
>npm install
var express = require("express");
var app = express();
require('rootpath')();
var bodyParser = require('body-parser');
app.use(bodyParser.json());
app.listen(3000);
console.log("My Service is listening to port 3000.");

Recommended for you

Firebase in a Nutshell
Firebase in a NutshellFirebase in a Nutshell
Firebase in a Nutshell

Firebase evolved from Envolve, a startup founded in 2011 that provided an API for integrating online chat into websites. Developers were using Envolve's real-time architecture to sync app data beyond just chat. In 2011, Firebase was founded to focus on this real-time data synchronization, launching its first product - the Firebase Real-time Database - in 2012. This database synchronizes app data across devices in real-time and stores it in Firebase's cloud. In 2014, Firebase launched products for hosting, authentication, and other services, positioning itself as a mobile backend platform.

firebasegcpserverless
Firebase
FirebaseFirebase
Firebase

The document discusses Firebase and its features for building realtime web and mobile applications. It explains that Firebase provides a database, authentication, security, and hosting capabilities. It also outlines how to set up Firebase in an Android app by including the library, setting the context, reading and writing data to the database, and enabling different authentication methods. Security rules and offline capabilities with Firebase are also briefly mentioned.

mobilestatic hostinggoogle cloud platform
Developing Faster with Swagger
Developing Faster with SwaggerDeveloping Faster with Swagger
Developing Faster with Swagger

This document discusses how Swagger can be used to develop APIs faster. It describes what Swagger is, provides an example Swagger YAML file, and discusses how code can be generated from Swagger specifications. It also introduces Swagger Inflector, which uses the Swagger specification as the single source of truth to automatically route controllers, map models, and generate sample data when controllers are not implemented. The document encourages rethinking the DRY principle and maintaining the API specification as the central source.

apijavarest
4. Go to Firebase console and copy code for web on
overview section then paste to app.js .
Integrate Firebase with
NodeJS
var firebase = require("firebase");
// Initialize the app with a service account, granting admin privileges
firebase.initializeApp({
apiKey: "AIzaSyBrzkaCzORJfYizrjeIij3rbl6d-EYswt0",
authDomain: "ibcrm-b1a74.firebaseapp.com",
databaseURL: "https://ibcrm-b1a74.firebaseio.com",
storageBucket: "ibcrm-b1a74.appspot.com",
messagingSenderId: "810901210082"
});
1.Put code in app.js following.
2. Open Terminal then run nodejs > node app.js
Create data
var Guid = require('guid');
app.post('/members/add',function(req,res){
var _guid = Guid.create();
var guid = _guid.toString();
firebase.database().ref('members/' + guid.toString())
.set(req.body,function(err){
var message ={code:200,status:"Insert completed"}
if(err)
message ={code:500,status:"error",message:err}
else
message.result = req.body;
res.send(message);
});
});
Objective
Install Chrome Postman for test Restful API.
1. Find in Google by wording is “Chrome Postman”
2. Click add chrome plugin
Install Postman
Objective
Test CRUD Rest API by Postman to make sure that all function
are work correctly .
1. Open “Chrome Postman” then set parameter following.
Setup Postman’s Parameters
1
2
3
4
2

Recommended for you

API & Backend Integration
API & Backend IntegrationAPI & Backend Integration
API & Backend Integration

This document discusses building forms, APIs, and CRUD operations in React. It covers creating basic and controlled forms in React, RESTful APIs and CRUD operations using HTTP methods like GET and POST. Axios is introduced as a library for making API requests from React. Examples of CRUD functionality for create, read, update and delete operations are provided. The conclusion emphasizes how this knowledge enables building dynamic web applications with seamless data interaction and user experience.

elewayteelearningonline
Azure App Service
Azure App ServiceAzure App Service
Azure App Service

This slide deck provides the basics of Azure App Service. This presentation was presented by Harikharan Krishnaraju, Developer Support Escalation Engineer, Microsoft during the TechMeet360 event organized by BizTalk360, held on December 17, 2016 at Coimbatore.

biztalk analyticstechmeet360biztalk monitoring
Introduction to Progressive web app (PWA)
Introduction to Progressive web app (PWA)Introduction to Progressive web app (PWA)
Introduction to Progressive web app (PWA)

Progressive web apps (PWAs) are experiences that combine the best of the web and mobile apps. They load quickly, work offline, and feel like native mobile apps. The key aspects of PWAs include service workers for offline functionality, app shells for fast loading, and manifest files for home screen capabilities. PWAs use caching strategies and service workers to load from the cache first for offline access, then request updates from the network as needed. This provides a better user experience than online-first solutions which require network connectivity.

1.Go to Firebase web console then set JSON
following.
Open Authorise
• Rerun app.js
• Back to Chrome Postman then click send button.
Test Rest API
>node app.js
We have created solution like below picture.
What we’ve done ?
23
1.Put code in app.js following.
2. Open Terminal then run nodejs > node app.js
3. On Chrome Postman click Send button.
Get data
app.get('/members/getMany',function(req,res){
firebase.database().ref('members').once('value')
.then(function(data){
res.send(data.val());
})
});

Recommended for you

Realtime vs Cloud Firestore
Realtime vs Cloud Firestore Realtime vs Cloud Firestore
Realtime vs Cloud Firestore

Firebase was founded in 2011 and acquired by Google in 2014. It launched Cloud Firestore in 2017. Realtime Database is Firebase's original database that stores data in a JSON tree structure, while Cloud Firestore is newer and stores data in documents within collections. Both provide real-time updates and offline support on mobile and web. Cloud Firestore has more powerful querying, transactions, and security features but was still in beta, while Realtime Database is more reliable but has fewer features and scales data differently.

educationdatabasegoogle
Firebase
FirebaseFirebase
Firebase

Firebase is a mobile and web application platform with tools and infrastructure designed to help developers build high-quality apps. Firebase evolved from Envolve, a prior startup founded by Tamplin and Lee in 2011. Envolve provided developers an API that let them integrate online chat into their websites.

hostinggoogle analyticsdatabase
Introduction to Firebase [Google I/O Extended Bangkok 2016]
Introduction to Firebase [Google I/O Extended Bangkok 2016]Introduction to Firebase [Google I/O Extended Bangkok 2016]
Introduction to Firebase [Google I/O Extended Bangkok 2016]

This document provides an overview of developing a mobile application with Firebase. It discusses that developing a mobile app requires functionality like authentication, databases, storage, analytics etc. It then summarizes the key services Firebase provides for mobile development including authentication, realtime database, storage, hosting, cloud messaging, remote config, testing services, crash reporting, dynamic links, invites, monetization services and analytics. The document demonstrates how to integrate and use these Firebase services in a mobile app with code snippets. It positions Firebase as providing an easy way to add functionality to an app without needing to hire backend engineers.

cross platformbackendandroid
1.Put code in app.js following.
2. Open Terminal then run nodejs > node app.js
Edit data
app.put('/members/edit',function(req,res){
var memberId = req.body.memberId;
var memberInfo = req.body.memberInfo;
firebase.database().ref('members/' + memberId)
.update(memberInfo,function(err){
var message ={code:200,status:"Update completed"}
if(err)
message ={code:500,status:"error",message:err}
else
message.result = req.body;
res.send(message);
});
});
1.Put code in app.js following.
2. Open Terminal then run nodejs > node app.js
Delete data
app.delete('/members/delete',function(req,res){
var memberId = req.body.memberId;
firebase.database().ref('members/' + memberId)
.remove(function(err){
var message ={code:200,status:"Remove completed"}
if(err)
message ={code:500,status:"error",message:err}
else
message.result = req.body;
res.send(message);
});
});
Human are social animals
Give and Take:
Why Helping Others Drives Our
Success
END
Delete

Recommended for you

Quickie auth with firebase and polymer
Quickie auth with firebase and polymerQuickie auth with firebase and polymer
Quickie auth with firebase and polymer

A quick authentication with polymerfire elements presented in GDG Algiers GCP Next 2017 You can test the demo part in https://authwithfirebase.firebaseapp.com

polymerfirebasepolymerfire
Node.js - A practical introduction (v2)
Node.js  - A practical introduction (v2)Node.js  - A practical introduction (v2)
Node.js - A practical introduction (v2)

This document provides an introduction to Node.js including its history, uses, advantages, and community. It describes how Node.js uses non-blocking I/O and JavaScript to enable highly scalable applications. Examples show how Node.js can run HTTP servers and handle streaming data faster than traditional blocking architectures. The document recommends Node.js for real-time web applications and advises against using it for hard real-time systems or CPU-intensive tasks. It encourages participation in the growing Node.js community on mailing lists and IRC.

node.jsnodejavascript
It jobs road show
It jobs road showIt jobs road show
It jobs road show

IT Career Path

More Related Content

What's hot

Google Firebase presentation - English
Google Firebase presentation - EnglishGoogle Firebase presentation - English
Google Firebase presentation - English
Alexandros Tsichouridis
 
Firebase
FirebaseFirebase
Firebase
Firebase Firebase
Firebase - A real-time server
Firebase - A real-time serverFirebase - A real-time server
Firebase - A real-time server
Aneeq Anwar
 
Introduction to Firebase with Android and Beyond...
Introduction to Firebase with Android and Beyond...Introduction to Firebase with Android and Beyond...
Introduction to Firebase with Android and Beyond...
Kasper Loevborg Jensen
 
Firebase Introduction
Firebase Introduction Firebase Introduction
Firebase Introduction
9xdot
 
Firebase
FirebaseFirebase
Firebase in action 2021
Firebase in action 2021Firebase in action 2021
Firebase in action 2021
NhanNguyen534
 
Firebase Analytics
Firebase AnalyticsFirebase Analytics
Firebase Analytics
Mariam Aslam
 
Database, data storage, hosting with Firebase
Database, data storage, hosting with FirebaseDatabase, data storage, hosting with Firebase
Database, data storage, hosting with Firebase
Tu Pham
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
JWORKS powered by Ordina
 
Firebase Auth Tutorial
Firebase Auth TutorialFirebase Auth Tutorial
Firebase Auth Tutorial
Bukhori Aqid
 
Firebase in a Nutshell
Firebase in a NutshellFirebase in a Nutshell
Firebase in a Nutshell
Sumit Sahoo
 
Firebase
FirebaseFirebase
Firebase
Tejas Koundinya
 
Developing Faster with Swagger
Developing Faster with SwaggerDeveloping Faster with Swagger
Developing Faster with Swagger
Tony Tam
 
API & Backend Integration
API & Backend IntegrationAPI & Backend Integration
API & Backend Integration
Elewayte
 
Azure App Service
Azure App ServiceAzure App Service
Azure App Service
BizTalk360
 
Introduction to Progressive web app (PWA)
Introduction to Progressive web app (PWA)Introduction to Progressive web app (PWA)
Introduction to Progressive web app (PWA)
Zhentian Wan
 
Realtime vs Cloud Firestore
Realtime vs Cloud Firestore Realtime vs Cloud Firestore
Realtime vs Cloud Firestore
Appinventiv
 
Firebase
FirebaseFirebase
Firebase
neha nasreen
 

What's hot (20)

Google Firebase presentation - English
Google Firebase presentation - EnglishGoogle Firebase presentation - English
Google Firebase presentation - English
 
Firebase
FirebaseFirebase
Firebase
 
Firebase
Firebase Firebase
Firebase
 
Firebase - A real-time server
Firebase - A real-time serverFirebase - A real-time server
Firebase - A real-time server
 
Introduction to Firebase with Android and Beyond...
Introduction to Firebase with Android and Beyond...Introduction to Firebase with Android and Beyond...
Introduction to Firebase with Android and Beyond...
 
Firebase Introduction
Firebase Introduction Firebase Introduction
Firebase Introduction
 
Firebase
FirebaseFirebase
Firebase
 
Firebase in action 2021
Firebase in action 2021Firebase in action 2021
Firebase in action 2021
 
Firebase Analytics
Firebase AnalyticsFirebase Analytics
Firebase Analytics
 
Database, data storage, hosting with Firebase
Database, data storage, hosting with FirebaseDatabase, data storage, hosting with Firebase
Database, data storage, hosting with Firebase
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
 
Firebase Auth Tutorial
Firebase Auth TutorialFirebase Auth Tutorial
Firebase Auth Tutorial
 
Firebase in a Nutshell
Firebase in a NutshellFirebase in a Nutshell
Firebase in a Nutshell
 
Firebase
FirebaseFirebase
Firebase
 
Developing Faster with Swagger
Developing Faster with SwaggerDeveloping Faster with Swagger
Developing Faster with Swagger
 
API & Backend Integration
API & Backend IntegrationAPI & Backend Integration
API & Backend Integration
 
Azure App Service
Azure App ServiceAzure App Service
Azure App Service
 
Introduction to Progressive web app (PWA)
Introduction to Progressive web app (PWA)Introduction to Progressive web app (PWA)
Introduction to Progressive web app (PWA)
 
Realtime vs Cloud Firestore
Realtime vs Cloud Firestore Realtime vs Cloud Firestore
Realtime vs Cloud Firestore
 
Firebase
FirebaseFirebase
Firebase
 

Viewers also liked

Introduction to Firebase [Google I/O Extended Bangkok 2016]
Introduction to Firebase [Google I/O Extended Bangkok 2016]Introduction to Firebase [Google I/O Extended Bangkok 2016]
Introduction to Firebase [Google I/O Extended Bangkok 2016]
Sittiphol Phanvilai
 
Quickie auth with firebase and polymer
Quickie auth with firebase and polymerQuickie auth with firebase and polymer
Quickie auth with firebase and polymer
Sylia Baraka
 
Node.js - A practical introduction (v2)
Node.js  - A practical introduction (v2)Node.js  - A practical introduction (v2)
Node.js - A practical introduction (v2)
Felix Geisendörfer
 
It jobs road show
It jobs road showIt jobs road show
It jobs road show
Apaichon Punopas
 
Change RelationalDB to GraphDB with OrientDB
Change RelationalDB to GraphDB with OrientDBChange RelationalDB to GraphDB with OrientDB
Change RelationalDB to GraphDB with OrientDB
Apaichon Punopas
 
Building an alarm clock with node.js
Building an alarm clock with node.jsBuilding an alarm clock with node.js
Building an alarm clock with node.js
Felix Geisendörfer
 
Node.js - As a networking tool
Node.js - As a networking toolNode.js - As a networking tool
Node.js - As a networking tool
Felix Geisendörfer
 
Forensic Tools for In-Depth Performance Investigations
Forensic Tools for In-Depth Performance InvestigationsForensic Tools for In-Depth Performance Investigations
Forensic Tools for In-Depth Performance Investigations
Nicholas Jansma
 
Introduction to Firebase on Android
Introduction to Firebase on AndroidIntroduction to Firebase on Android
Introduction to Firebase on Android
amsanjeev
 
Firebase Adventures - Real time platform for your apps
Firebase Adventures - Real time platform for your appsFirebase Adventures - Real time platform for your apps
Firebase Adventures - Real time platform for your apps
Juarez Filho
 
Why use slideshare
Why use slideshareWhy use slideshare
Why use slideshare
Say Digital Media
 
NodeJS for Beginner
NodeJS for BeginnerNodeJS for Beginner
NodeJS for Beginner
Apaichon Punopas
 
Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture
AppDynamics
 
Nodejs Explained with Examples
Nodejs Explained with ExamplesNodejs Explained with Examples
Nodejs Explained with Examples
Gabriele Lana
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
Vikash Singh
 
Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907
NodejsFoundation
 
How to Use Slideshare
How to Use SlideshareHow to Use Slideshare
How to Use Slideshare
Converting Copy
 
Firebase Dev Day Bangkok: Keynote
Firebase Dev Day Bangkok: KeynoteFirebase Dev Day Bangkok: Keynote
Firebase Dev Day Bangkok: Keynote
Sittiphol Phanvilai
 
The Enterprise Case for Node.js
The Enterprise Case for Node.jsThe Enterprise Case for Node.js
The Enterprise Case for Node.js
NodejsFoundation
 
Node.js - Best practices
Node.js  - Best practicesNode.js  - Best practices
Node.js - Best practices
Felix Geisendörfer
 

Viewers also liked (20)

Introduction to Firebase [Google I/O Extended Bangkok 2016]
Introduction to Firebase [Google I/O Extended Bangkok 2016]Introduction to Firebase [Google I/O Extended Bangkok 2016]
Introduction to Firebase [Google I/O Extended Bangkok 2016]
 
Quickie auth with firebase and polymer
Quickie auth with firebase and polymerQuickie auth with firebase and polymer
Quickie auth with firebase and polymer
 
Node.js - A practical introduction (v2)
Node.js  - A practical introduction (v2)Node.js  - A practical introduction (v2)
Node.js - A practical introduction (v2)
 
It jobs road show
It jobs road showIt jobs road show
It jobs road show
 
Change RelationalDB to GraphDB with OrientDB
Change RelationalDB to GraphDB with OrientDBChange RelationalDB to GraphDB with OrientDB
Change RelationalDB to GraphDB with OrientDB
 
Building an alarm clock with node.js
Building an alarm clock with node.jsBuilding an alarm clock with node.js
Building an alarm clock with node.js
 
Node.js - As a networking tool
Node.js - As a networking toolNode.js - As a networking tool
Node.js - As a networking tool
 
Forensic Tools for In-Depth Performance Investigations
Forensic Tools for In-Depth Performance InvestigationsForensic Tools for In-Depth Performance Investigations
Forensic Tools for In-Depth Performance Investigations
 
Introduction to Firebase on Android
Introduction to Firebase on AndroidIntroduction to Firebase on Android
Introduction to Firebase on Android
 
Firebase Adventures - Real time platform for your apps
Firebase Adventures - Real time platform for your appsFirebase Adventures - Real time platform for your apps
Firebase Adventures - Real time platform for your apps
 
Why use slideshare
Why use slideshareWhy use slideshare
Why use slideshare
 
NodeJS for Beginner
NodeJS for BeginnerNodeJS for Beginner
NodeJS for Beginner
 
Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture
 
Nodejs Explained with Examples
Nodejs Explained with ExamplesNodejs Explained with Examples
Nodejs Explained with Examples
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
 
Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907
 
How to Use Slideshare
How to Use SlideshareHow to Use Slideshare
How to Use Slideshare
 
Firebase Dev Day Bangkok: Keynote
Firebase Dev Day Bangkok: KeynoteFirebase Dev Day Bangkok: Keynote
Firebase Dev Day Bangkok: Keynote
 
The Enterprise Case for Node.js
The Enterprise Case for Node.jsThe Enterprise Case for Node.js
The Enterprise Case for Node.js
 
Node.js - Best practices
Node.js  - Best practicesNode.js  - Best practices
Node.js - Best practices
 

Similar to Firebase slide

System insight without Interference
System insight without InterferenceSystem insight without Interference
System insight without Interference
Tony Tam
 
Introduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azureIntroduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azure
Colin Mackay
 
Building Your First App with MongoDB
Building Your First App with MongoDBBuilding Your First App with MongoDB
Building Your First App with MongoDB
MongoDB
 
FITC - Node.js 101
FITC - Node.js 101FITC - Node.js 101
FITC - Node.js 101
Rami Sayar
 
Intro to node and mongodb 1
Intro to node and mongodb   1Intro to node and mongodb   1
Intro to node and mongodb 1
Mohammad Qureshi
 
Intro to node.js - Ran Mizrahi (27/8/2014)
Intro to node.js - Ran Mizrahi (27/8/2014)Intro to node.js - Ran Mizrahi (27/8/2014)
Intro to node.js - Ran Mizrahi (27/8/2014)
Ran Mizrahi
 
Intro to node.js - Ran Mizrahi (28/8/14)
Intro to node.js - Ran Mizrahi (28/8/14)Intro to node.js - Ran Mizrahi (28/8/14)
Intro to node.js - Ran Mizrahi (28/8/14)
Ran Mizrahi
 
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWSAWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
Amazon Web Services
 
Introduction to Node.js: What, why and how?
Introduction to Node.js: What, why and how?Introduction to Node.js: What, why and how?
Introduction to Node.js: What, why and how?
Christian Joudrey
 
Advanced Web Technology.pptx
Advanced Web Technology.pptxAdvanced Web Technology.pptx
Advanced Web Technology.pptx
ssuser35fdf2
 
Basic API Creation with Node.JS
Basic API Creation with Node.JSBasic API Creation with Node.JS
Basic API Creation with Node.JS
Azilen Technologies Pvt. Ltd.
 
Coders Workshop: API First Mobile Development Featuring Angular and Node
Coders Workshop: API First Mobile Development Featuring Angular and NodeCoders Workshop: API First Mobile Development Featuring Angular and Node
Coders Workshop: API First Mobile Development Featuring Angular and Node
Apigee | Google Cloud
 
Node.js 101 with Rami Sayar
Node.js 101 with Rami SayarNode.js 101 with Rami Sayar
Node.js 101 with Rami Sayar
FITC
 
Android pentesting the hackers-meetup
Android pentesting the hackers-meetupAndroid pentesting the hackers-meetup
Android pentesting the hackers-meetup
kunwaratul hax0r
 
My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
Arjun Kumawat
 
Nodejs web,db,hosting
Nodejs web,db,hostingNodejs web,db,hosting
Nodejs web,db,hosting
Kenu, GwangNam Heo
 
Node.js to the rescue
Node.js to the rescueNode.js to the rescue
Node.js to the rescue
Marko Heijnen
 
Practical Use of MongoDB for Node.js
Practical Use of MongoDB for Node.jsPractical Use of MongoDB for Node.js
Practical Use of MongoDB for Node.js
async_io
 
SOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class LibrariesSOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class Libraries
Vagif Abilov
 
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic BeanstalkDeploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Amazon Web Services
 

Similar to Firebase slide (20)

System insight without Interference
System insight without InterferenceSystem insight without Interference
System insight without Interference
 
Introduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azureIntroduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azure
 
Building Your First App with MongoDB
Building Your First App with MongoDBBuilding Your First App with MongoDB
Building Your First App with MongoDB
 
FITC - Node.js 101
FITC - Node.js 101FITC - Node.js 101
FITC - Node.js 101
 
Intro to node and mongodb 1
Intro to node and mongodb   1Intro to node and mongodb   1
Intro to node and mongodb 1
 
Intro to node.js - Ran Mizrahi (27/8/2014)
Intro to node.js - Ran Mizrahi (27/8/2014)Intro to node.js - Ran Mizrahi (27/8/2014)
Intro to node.js - Ran Mizrahi (27/8/2014)
 
Intro to node.js - Ran Mizrahi (28/8/14)
Intro to node.js - Ran Mizrahi (28/8/14)Intro to node.js - Ran Mizrahi (28/8/14)
Intro to node.js - Ran Mizrahi (28/8/14)
 
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWSAWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
 
Introduction to Node.js: What, why and how?
Introduction to Node.js: What, why and how?Introduction to Node.js: What, why and how?
Introduction to Node.js: What, why and how?
 
Advanced Web Technology.pptx
Advanced Web Technology.pptxAdvanced Web Technology.pptx
Advanced Web Technology.pptx
 
Basic API Creation with Node.JS
Basic API Creation with Node.JSBasic API Creation with Node.JS
Basic API Creation with Node.JS
 
Coders Workshop: API First Mobile Development Featuring Angular and Node
Coders Workshop: API First Mobile Development Featuring Angular and NodeCoders Workshop: API First Mobile Development Featuring Angular and Node
Coders Workshop: API First Mobile Development Featuring Angular and Node
 
Node.js 101 with Rami Sayar
Node.js 101 with Rami SayarNode.js 101 with Rami Sayar
Node.js 101 with Rami Sayar
 
Android pentesting the hackers-meetup
Android pentesting the hackers-meetupAndroid pentesting the hackers-meetup
Android pentesting the hackers-meetup
 
My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
 
Nodejs web,db,hosting
Nodejs web,db,hostingNodejs web,db,hosting
Nodejs web,db,hosting
 
Node.js to the rescue
Node.js to the rescueNode.js to the rescue
Node.js to the rescue
 
Practical Use of MongoDB for Node.js
Practical Use of MongoDB for Node.jsPractical Use of MongoDB for Node.js
Practical Use of MongoDB for Node.js
 
SOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class LibrariesSOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class Libraries
 
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic BeanstalkDeploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
 

Recently uploaded

Software development... for all? (keynote at ICSOFT'2024)
Software development... for all? (keynote at ICSOFT'2024)Software development... for all? (keynote at ICSOFT'2024)
Software development... for all? (keynote at ICSOFT'2024)
miso_uam
 
Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...
Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...
Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...
onemonitarsoftware
 
NBFC Software: Optimize Your Non-Banking Financial Company
NBFC Software: Optimize Your Non-Banking Financial CompanyNBFC Software: Optimize Your Non-Banking Financial Company
NBFC Software: Optimize Your Non-Banking Financial Company
NBFC Softwares
 
dachnug51 - Whats new in domino 14 .pdf
dachnug51 - Whats new in domino 14  .pdfdachnug51 - Whats new in domino 14  .pdf
dachnug51 - Whats new in domino 14 .pdf
DNUG e.V.
 
ThaiPy meetup - Indexes and Django
ThaiPy meetup - Indexes and DjangoThaiPy meetup - Indexes and Django
ThaiPy meetup - Indexes and Django
akshesh doshi
 
WEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service ProvidersWEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service Providers
Severalnines
 
COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...
COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...
COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...
Hironori Washizaki
 
ENISA Threat Landscape 2023 documentation
ENISA Threat Landscape 2023 documentationENISA Threat Landscape 2023 documentation
ENISA Threat Landscape 2023 documentation
sofiafernandezon
 
AWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdf
AWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdfAWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdf
AWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdf
karim wahed
 
Prada Group Reports Strong Growth in First Quarter …
Prada Group Reports Strong Growth in First Quarter …Prada Group Reports Strong Growth in First Quarter …
Prada Group Reports Strong Growth in First Quarter …
908dutch
 
一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理
一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理
一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理
avufu
 
MVP Mobile Application - Codearrest.pptx
MVP Mobile Application - Codearrest.pptxMVP Mobile Application - Codearrest.pptx
MVP Mobile Application - Codearrest.pptx
Mitchell Marsh
 
What is OCR Technology and How to Extract Text from Any Image for Free
What is OCR Technology and How to Extract Text from Any Image for FreeWhat is OCR Technology and How to Extract Text from Any Image for Free
What is OCR Technology and How to Extract Text from Any Image for Free
TwisterTools
 
Splunk_Remote_Work_Insights_Overview.pptx
Splunk_Remote_Work_Insights_Overview.pptxSplunk_Remote_Work_Insights_Overview.pptx
Splunk_Remote_Work_Insights_Overview.pptx
sudsdeep
 
Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...
Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...
Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
ANSYS Mechanical APDL Introductory Tutorials.pdf
ANSYS Mechanical APDL Introductory Tutorials.pdfANSYS Mechanical APDL Introductory Tutorials.pdf
ANSYS Mechanical APDL Introductory Tutorials.pdf
sachin chaurasia
 
Development of Chatbot Using AI\ML Technologies
Development of Chatbot Using AI\ML TechnologiesDevelopment of Chatbot Using AI\ML Technologies
Development of Chatbot Using AI\ML Technologies
MaisnamLuwangPibarel
 
Migrate your Infrastructure to the AWS Cloud
Migrate your Infrastructure to the AWS CloudMigrate your Infrastructure to the AWS Cloud
Migrate your Infrastructure to the AWS Cloud
Ortus Solutions, Corp
 
Independence Day Hasn’t Always Been a U.S. Holiday.pdf
Independence Day Hasn’t Always Been a U.S. Holiday.pdfIndependence Day Hasn’t Always Been a U.S. Holiday.pdf
Independence Day Hasn’t Always Been a U.S. Holiday.pdf
Livetecs LLC
 
React Native vs Flutter - SSTech System
React Native vs Flutter  - SSTech SystemReact Native vs Flutter  - SSTech System
React Native vs Flutter - SSTech System
SSTech System
 

Recently uploaded (20)

Software development... for all? (keynote at ICSOFT'2024)
Software development... for all? (keynote at ICSOFT'2024)Software development... for all? (keynote at ICSOFT'2024)
Software development... for all? (keynote at ICSOFT'2024)
 
Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...
Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...
Discover the Power of ONEMONITAR: The Ultimate Mobile Spy App for Android Dev...
 
NBFC Software: Optimize Your Non-Banking Financial Company
NBFC Software: Optimize Your Non-Banking Financial CompanyNBFC Software: Optimize Your Non-Banking Financial Company
NBFC Software: Optimize Your Non-Banking Financial Company
 
dachnug51 - Whats new in domino 14 .pdf
dachnug51 - Whats new in domino 14  .pdfdachnug51 - Whats new in domino 14  .pdf
dachnug51 - Whats new in domino 14 .pdf
 
ThaiPy meetup - Indexes and Django
ThaiPy meetup - Indexes and DjangoThaiPy meetup - Indexes and Django
ThaiPy meetup - Indexes and Django
 
WEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service ProvidersWEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service Providers
 
COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...
COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...
COMPSAC 2024 D&I Panel: Charting a Course for Equity: Strategies for Overcomi...
 
ENISA Threat Landscape 2023 documentation
ENISA Threat Landscape 2023 documentationENISA Threat Landscape 2023 documentation
ENISA Threat Landscape 2023 documentation
 
AWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdf
AWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdfAWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdf
AWS Cloud Practitioner Essentials (Second Edition) (Arabic) AWS Security .pdf
 
Prada Group Reports Strong Growth in First Quarter …
Prada Group Reports Strong Growth in First Quarter …Prada Group Reports Strong Growth in First Quarter …
Prada Group Reports Strong Growth in First Quarter …
 
一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理
一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理
一比一原版英国牛津大学毕业证(oxon毕业证书)如何办理
 
MVP Mobile Application - Codearrest.pptx
MVP Mobile Application - Codearrest.pptxMVP Mobile Application - Codearrest.pptx
MVP Mobile Application - Codearrest.pptx
 
What is OCR Technology and How to Extract Text from Any Image for Free
What is OCR Technology and How to Extract Text from Any Image for FreeWhat is OCR Technology and How to Extract Text from Any Image for Free
What is OCR Technology and How to Extract Text from Any Image for Free
 
Splunk_Remote_Work_Insights_Overview.pptx
Splunk_Remote_Work_Insights_Overview.pptxSplunk_Remote_Work_Insights_Overview.pptx
Splunk_Remote_Work_Insights_Overview.pptx
 
Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...
Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...
Abortion pills in Fujairah *((+971588192166*)☎️)¥) **Effective Abortion Pills...
 
ANSYS Mechanical APDL Introductory Tutorials.pdf
ANSYS Mechanical APDL Introductory Tutorials.pdfANSYS Mechanical APDL Introductory Tutorials.pdf
ANSYS Mechanical APDL Introductory Tutorials.pdf
 
Development of Chatbot Using AI\ML Technologies
Development of Chatbot Using AI\ML TechnologiesDevelopment of Chatbot Using AI\ML Technologies
Development of Chatbot Using AI\ML Technologies
 
Migrate your Infrastructure to the AWS Cloud
Migrate your Infrastructure to the AWS CloudMigrate your Infrastructure to the AWS Cloud
Migrate your Infrastructure to the AWS Cloud
 
Independence Day Hasn’t Always Been a U.S. Holiday.pdf
Independence Day Hasn’t Always Been a U.S. Holiday.pdfIndependence Day Hasn’t Always Been a U.S. Holiday.pdf
Independence Day Hasn’t Always Been a U.S. Holiday.pdf
 
React Native vs Flutter - SSTech System
React Native vs Flutter  - SSTech SystemReact Native vs Flutter  - SSTech System
React Native vs Flutter - SSTech System
 

Firebase slide

  • 2. • Realtime Database call by API • Store as JSON format • Sync data from multiple applications • Only write front end code • Secure and monitor your data • Access from everywhere What is Firebase ?
  • 3. • Originally referring to "non SQL", "non relational" or "not only SQL" • Simplicity of design, simpler "horizontal" scaling to clusters of machines • key-value, wide column, graph, or document • "more flexible" than relational database tables • Most NoSQL stores lack true ACID transactions • Most NoSQL use JSON format What is NO SQL ?
  • 4. • This model organizes data into one or more tables (or "relations") of columns and rows, with a unique key identifying each row. Rows are also called records or tuples. What is Relational DB ?
  • 5. • Move fast • Forget about infrastructure • Make smart, data-driven decisions • Work across platforms • Free to start, scale with ease Why use Firebase ?
  • 7. • Single JSON format Firebase structure {"firstName":"John", "lastName":"Doe" , "age":30 , "gender":"M" , “birthDay":"1/1/1986" }
  • 8. • Go to https://www.firebase.com/ • Click • Click • Fill Project Information Register Firebase
  • 10. • Node.js is a server-side platform. • Built on Google Chrome's JavaScript Engine (V8 Engine). • It was developed by Ryan Dahl in 2009. • It is an open source. • Cross-platform runtime environment for developing server-side and networking applications. • Node.js uses an event-driven, non-blocking I/O model. What is NodeJS ?
  • 11. • The term I/O is used to describe any program, operation or device that transfers data to or from a computer and to or from a peripheral device. What is I/O ?
  • 12. • Most I/O requests are considered blocking requests, meaning that control does not return to the application until the I/O is complete. The delayed from systems calls such read() and write() can be quite long. Using systems call that block is sometimes call synchronous programming. What is Blocking I/O ?
  • 13. • Programs that use non-blocking I/O tend to follow the rule that every function has to return immediately, i.e. all the functions in such programs are nonblocking. Thus control passes very quickly from one routine to the next. What is non blocking I/O ?
  • 14. 1. Go to https://nodejs.org/en/download/ 2. Choose NodeJS for your OS. 3. Extract file and Click on Installer package. 4. After finish installed then open terminal and type command. Installation NodeJS >node -v
  • 15. 1. Create file name package.json Integrate Firebase with NodeJS #2 { "name": "testfirebase", "version": "1.0.0", "description": "MyService is Rest Api Application for our core system.", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "keywords": [ "Test Firebase" ], "author": “Your Name", "license": "MIT", "dependencies": { "body-parser": ">= 1.14.2", "express": "^4.14.0", "firebase": "^3.5.2", "guid": "latest" } }
  • 16. 2. Install NodeJS Package 3. Create file name “app.js” and put code following. Integrate Firebase with NodeJS >npm install var express = require("express"); var app = express(); require('rootpath')(); var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.listen(3000); console.log("My Service is listening to port 3000.");
  • 17. 4. Go to Firebase console and copy code for web on overview section then paste to app.js . Integrate Firebase with NodeJS var firebase = require("firebase"); // Initialize the app with a service account, granting admin privileges firebase.initializeApp({ apiKey: "AIzaSyBrzkaCzORJfYizrjeIij3rbl6d-EYswt0", authDomain: "ibcrm-b1a74.firebaseapp.com", databaseURL: "https://ibcrm-b1a74.firebaseio.com", storageBucket: "ibcrm-b1a74.appspot.com", messagingSenderId: "810901210082" });
  • 18. 1.Put code in app.js following. 2. Open Terminal then run nodejs > node app.js Create data var Guid = require('guid'); app.post('/members/add',function(req,res){ var _guid = Guid.create(); var guid = _guid.toString(); firebase.database().ref('members/' + guid.toString()) .set(req.body,function(err){ var message ={code:200,status:"Insert completed"} if(err) message ={code:500,status:"error",message:err} else message.result = req.body; res.send(message); }); });
  • 19. Objective Install Chrome Postman for test Restful API. 1. Find in Google by wording is “Chrome Postman” 2. Click add chrome plugin Install Postman
  • 20. Objective Test CRUD Rest API by Postman to make sure that all function are work correctly . 1. Open “Chrome Postman” then set parameter following. Setup Postman’s Parameters 1 2 3 4 2
  • 21. 1.Go to Firebase web console then set JSON following. Open Authorise
  • 22. • Rerun app.js • Back to Chrome Postman then click send button. Test Rest API >node app.js
  • 23. We have created solution like below picture. What we’ve done ? 23
  • 24. 1.Put code in app.js following. 2. Open Terminal then run nodejs > node app.js 3. On Chrome Postman click Send button. Get data app.get('/members/getMany',function(req,res){ firebase.database().ref('members').once('value') .then(function(data){ res.send(data.val()); }) });
  • 25. 1.Put code in app.js following. 2. Open Terminal then run nodejs > node app.js Edit data app.put('/members/edit',function(req,res){ var memberId = req.body.memberId; var memberInfo = req.body.memberInfo; firebase.database().ref('members/' + memberId) .update(memberInfo,function(err){ var message ={code:200,status:"Update completed"} if(err) message ={code:500,status:"error",message:err} else message.result = req.body; res.send(message); }); });
  • 26. 1.Put code in app.js following. 2. Open Terminal then run nodejs > node app.js Delete data app.delete('/members/delete',function(req,res){ var memberId = req.body.memberId; firebase.database().ref('members/' + memberId) .remove(function(err){ var message ={code:200,status:"Remove completed"} if(err) message ={code:500,status:"error",message:err} else message.result = req.body; res.send(message); }); });
  • 27. Human are social animals Give and Take: Why Helping Others Drives Our Success END