CC 6
CC 6
Database as a Service
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.
• 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:
• 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/
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
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.
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
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.
7. Conclusion