0% found this document useful (0 votes)
52 views11 pages

CC 6

This document discusses implementing Database as a Service using Firebase. It provides an overview of Firebase and its features as a real-time NoSQL database in the cloud. The document then outlines the steps to add Firebase to an Android application, including creating a Firebase project, selecting the Android platform, and specifying the application's package name. The goal is to analyze cloud computing service models and use Firebase to perform CRUD operations on cloud databases.

Uploaded by

Manali Jagtap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views11 pages

CC 6

This document discusses implementing Database as a Service using Firebase. It provides an overview of Firebase and its features as a real-time NoSQL database in the cloud. The document then outlines the steps to add Firebase to an Android application, including creating a Firebase project, selecting the Android platform, and specifying the application's package name. The goal is to analyze cloud computing service models and use Firebase to perform CRUD operations on cloud databases.

Uploaded by

Manali Jagtap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Department of Computer Engineering

Cloud Computing Lab


Experiment No.: 6

Database as a Service

A.C. Patil College of Engineering www.acpce.org 56 | Page


Department of Computer Engineering

Experiment No. 6
1. Aim: To study and Implement Database as a Service on SQL/NOSQL databases like
Firebase
2. Objectives: To know the concept of Database as a Service running on cloud and to
demonstrate the CRUD operations on different SQL and NOSQL databases running on
cloud like Firebase.
3. Outcomes: The learner will be able to analyze various cloud computing service models
and implement them to solve the given problems.
4. Hardware / Software Required: Ubuntu operating
ting system, Internet browser, Internet
Connection
5. Theory:
Firebase is a Backend-as
as-a-Service (BaaS) which started as a YC11 startup. It grew up
into a next-generation
generation app
app-development
development platform on Google Cloud Platform. Firebase (a
NoSQLjSON database) is a real-time
time database that allows storing a list of objects in the
form of a tree. We can synchronize data between different devices.

Google Firebase is Google


Google-backed
backed application development software which allows
developers to develop Android, IOS, and Web apps. For reporting and fixing app crashes,
tracking analytics, creating marketing and product experiments, firebase provides several
tools.

A.C. Patil College of Engineering www.acpce.org 57 | Page


Department of Computer Engineering
Firebase has three main services, i.e., a real
real-time
time database, user authentication, and
hosting. We can use these sservices
ervices with the help of the Firebase iOS SDK to create apps
without writing any server code.

Why use Firebase?


• Firebase manages real
real-time
time data in the database. So, it easily and quickly
exchanges the data to and from the database. Hence, for developing mobile apps
such as live streaming, chat messaging, etc., we can use Firebase.
• Firebase allows syncing real
real-time data across all devices - iOS, Android, and Web
- without refreshing the screen.
• Firebase provides integration to Google Advertising, AdMob, Data
Da Studio,
BigQuery DoubleClick, Play Store, and Slack to develop our apps with efficient
and accurate management and maintenance.
• Everything from databases, analytics to crash reports are included in Firebase. So,
the app development team can stay focused on improving the user experience.
• Firebase applications can be deployed over a secured connection to the firebase
server.
• Firebase offers a simple control dashboard.
• It offers a number of useful services to choose from.
• Pros and Cons of Firebase
• Firebase has a lot of pros or advantages. Apart from the advantages, it has
disadvantages too.
Pros
• Firebase is a real--time database.
• It has massive storage size potential.
• Firebase is serverless.
• It is highly secure.
• It is the most advanced hosted BaaS solution.
• Itt has minimal setup.

A.C. Patil College of Engineering www.acpce.org 58 | Page


Department of Computer Engineering

• It provides three-way
way data binding via angular fire.
• It provides simple serialization of app state.
• We can easily access data, files, auth, and more.
• There is no server infrastructure required to power apps with data.
• It has JSON storage, which means no barrier between data and objects.
Cons
• Firebase is not widely used, or battle
battle-tested for enterprises.
• It has very limited querying and indexing.
• It provides no aggregation.
• It has no map-reduce
reduce functionality.
• It cannot query or list users or stored files.
6. Procedure:
Android Studio
Firebase is developed for mobile applications. Android Studio is the best platform for
developing android applications.
To store data into Firebase, we first have to add the Firebase into our android application.
applic
Before adding Firebase into our android application, we need to be aware of some
prerequisites. These requisites are as follows:

• It is required that we should have a Google account to work with Firebase.


• We also required a device or emulator, which is running on Android 4.0 or newer.
• We also required the latest version of Android Studio, i.e., version 1.5 or higher.
• The app must use Gradle 4.1 or later.
There are two methods through which we can add Firebase to our application:
• One is through the Firebase assistant, which is a nice little wizard inside Android
Studio. It will connect our existing project or create a new one for us and
automatically install any necessary Gradle dependencies. It requires some
additional configuration.

A.C. Patil College of Engineering www.acpce.org 59 | Page


Department of Computer Engineering

• The second one is, we can manually add Firebase to our android application via
Firebase console. It is the recommended way of adding Firebase to our
application.
Add
dd Firebase to our android application manually:
Step 1: In the first step, we have to go to the firebase co
console
nsole by using the following link
https://firebase.google.com/

A.C. Patil College of Engineering www.acpce.org 60 | Page


Department of Computer Engineering
Step 2: Now, we first have to create a Firebase project. Firebase project will go through and
describe what it is. This allows us to add an app to that project can have many projects inside
of Firebase.

Step 3: Now, we have to give a name and id to the project, enable Google Analytics for the
project, set an analytics location, and accept all the terms and conditions. Firebase console
automatically
lly creates a unique id for the project.
1) Giving a name to the project

A.C. Patil College of Engineering www.acpce.org 61 | Page


Department of Computer Engineering

2) Enable Google analytics for the project

3) Set analytics location and accept terms and condition

A.C. Patil College of Engineering www.acpce.org 62 | Page


Department of Computer Engineering

When we click on create the project, the creation of the Firebase project iiss started, and once
our project will be created, we have to click on continue to enter in our project.

A.C. Patil College of Engineering www.acpce.org 63 | Page


Department of Computer Engineering

Step 4: In the next step, we have to choose the platform to add Firebase to our application.
The platform can be Android, iOS, Web, and Unity.

Select platform

A.C. Patil College of Engineering www.acpce.org 64 | Page


Department of Computer Engineering

Step 5: In the next step, we have to mention the package name, and the package name is the
mandatory and important thing. The package name should be matched with our Android
applications package name. We can find the package name of our application in any of the
Java class or Manifest file.

A.C. Patil College of Engineering www.acpce.org 65 | Page


Department of Computer Engineering
Step 6: In the next step, we will give a nickname to our application. It is an optional field.
There is another optional field for SHA
SHA-1,
1, which is required to do for certain feature. We can
find the SHA-11 by hitting on the signing report.

7. Conclusion

A.C. Patil College of Engineering www.acpce.org 66 | Page

You might also like