CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Firebase .pptx
1. Introduction to Firebase
Firebase is a cloud-based platform that provides a suite of
services for building and scaling mobile and web applications to
build high-quality apps quickly and easily. It was acquired by
Google in 2014 and has since become one of the most popular
app development platforms on the market.
Firebase offers a range of features and functionalities,
including real-time database, cloud storage, hosting,
authentication, and more. These features are designed to help
developers build better apps faster, without having to worry
about managing infrastructure or backend services.
2. ● Firebase Cloud Firestore is a NoSQL document-based
database that stores data in documents and collections.
● It allows for real-time synchronization between devices
and backends, meaning that data is instantly updated
across all clients connected to the database.
● Cloud Firestore provides powerful querying capabilities
that enable developers to search and filter data based on
specific criteria.
● It supports offline access, so devices can store data locally
and sync it to the server once an internet connection is
restored.
Cloud Firestore
3. ● Firebase Cloud Storage is a cloud-based storage solution
for storing and serving user-generated content such as
images, videos, and audio files.
● It supports automatic scaling and backup, ensuring that
data is always available and backed up in case of failures.
Cloud Storage
4. ● Firebase Authentication provides a simple way for
developers to authenticate users in their apps.
● It supports a variety of authentication methods, including
email/password, phone number, Google, Facebook,
Twitter, and much more.
● Firebase Authentication provides secure password
hashing and encryption, ensuring that user credentials are
stored safely.
● It provides easy-to-use client-side SDKs and server-side
APIs for authenticating users, managing user accounts,
and customizing the authentication flow.
Authentication
5. ● Create a Firebase project on the Firebase console, then
add Firebase to your Flutter project by following the
instructions given.
● Add the ‘firebase_auth’ package into your Flutter project
by executing the command ‘flutter pub add firebase_auth’
on the terminal.
● On the Firebase console, go to authentication and select
‘Email/Password’ as the sign-in method.
Steps to implement Authentication in your Flutter app
6. ● Import the ‘firebase_auth’ package into your app and
create an instance of the ‘FirebaseAuth’ class:
‘final _auth = FirebaseAuth.instance;’
● Finally, to sign up and sign in users, we use the
‘createUserWithEmailAndPassword’ and
‘signInWithEmailAndPassword’ methods as demonstrated.
Steps to implement Authentication in your Flutter app