Thanks to visit codestin.com
Credit goes to www.scribd.com

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

Firebase Assignment

The document outlines the process of setting up a Firebase account and integrating it with a website, including steps for project creation and enabling features like authentication. It also compares Firebase with relational and non-relational databases, highlighting differences in data models, scalability, and security mechanisms. Additionally, it discusses the limitations of Firebase and provides insights into the integration process using JavaScript and Firebase CLI.

Uploaded by

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

Firebase Assignment

The document outlines the process of setting up a Firebase account and integrating it with a website, including steps for project creation and enabling features like authentication. It also compares Firebase with relational and non-relational databases, highlighting differences in data models, scalability, and security mechanisms. Additionally, it discusses the limitations of Firebase and provides insights into the integration process using JavaScript and Firebase CLI.

Uploaded by

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

AICT Assignment

Ayan Ahmed
Registration Id: 2024-DS-40
Submitted To: Ma’am Hijab

Department of Data Science


University of Engineering and Technology
FireBase

Backend Server
Making Account on Firebase
1.First we will need to make account on Firebase, by
signing with our Google Account.

2.Then we click on “Go to Console”

3.Then we create an name for the project.


4.Now we will click continue and proceed to next
window.
5.Then we enable the google analytics option

6.Then we go to authentication tab for linking it


with email and password.

7.At the last we will enable the email and


password feature.
Questions\Answers
Q1: Difference between relational and non-relational
databases?

A:
Relational Database Non-Relational Database
Data stored in tables. No fixed Scheme

Relationship using primary Data stored in key value


and secondary key

Limited Scalability Handle large amount of data

Supports SQL Database-specific

Q2: How firebase is different from other


data bases?

Firebase is different from others because:

 It offers real time synchronization


 Its abstract backend management
 It also has offline capabilities
 It is designed on horizontal scaling

Q3: What security mechanisms does


Firebase offer, and how do they differ from
other databases?
Key Features of Firebase:

 Firebase Authentication
 Security Rules for Realtime Database and Fire store
 Data Encryption

Major Difference’s from another database:

 Real-Time and Granular Security Rules


 Integrated User Management

Q4: What are the differences between
Firebase Firestore and Firebase Realtime
Database?

Aspect Fire store Realtime Database


Data Model Document-based, organized into JSON tree-based (flat hierarchical
collections. structure).
Query Advanced queries with filtering Basic queries, less powerful
Capabilities and chaining. filtering.
Scalability Designed for horizontal scaling and Limited scalability, better suited
larger datasets. for smaller apps.
Offline Support Built-in offline support for web and Limited offline support compared
mobile. to Firestore.

Q5: What are the primary use cases where


Firebase is preferred over relational
databases?
A: The primary advantage of firebase is real time synchronization
Q6: What are the limitations of Firebase
when compared to relational databases or
other NoSQL databases like MongoDB?
A: Limitations of Firebase:

 It uses no SQL structure making complex


structure challenging to query or model.
 Joining data requires multiple queries and it can
lead to data duplication

 Transactions are supported but limited to single
document

 It's difficult for cross document or cross
collection

Q7: Difference between SQL and NoSQL databases?


A:
Aspect SQL Databases NoSQL Databases
Data Model Relational (tables with rows Non-relational (e.g., key-value,
and columns). document, graph).
Schema Fixed schema; requires Flexible schema; supports dynamic or
predefined structure. schema-less.
Scalability Vertically scalable (adding Horizontally scalable (adding more
resources to a single server). servers).
Query Uses Structured Query Uses varied APIs or query mechanisms,
Language Language (SQL). depending on the database type.
How can we integrate
firebase with our website?

THE ANSWER:

1.In the first step we will setup the account as we did earlier by following a set
of processes.
2.Now in the second step we will get an JavaScript code from firebase we will
copy it and paste in header portion of our html file. The code will look like this

3.If we are using JavaScript (as we do in most cases so we will install fire base
via npm in (command terminal)

4.Run npm install -g firebase-tools to install Firebase CLI.

5.Initialize hosting using firebase init hosting.


6.Deploy your website using firebase deploy.

You might also like