New to Firebase ? Let’s have a look then…

So what do you think what is firebase? You think that setting something on fire? :) noooooo!!! It is something which is very helpful. So lets hop over it to know.

So basically firebase is a mobile and web application platform that helps you to quickly develop high-quality apps, with tools and infrastructure. Firebase remove dependency from server and api and database. You will get all the things on one platform. Firebase is made up of complementary features that you can mix-and-match to fit your needs.

However if you are going to link to something such as a web or mobile application where the data is constantly changing by multiple users and all the users accessing the same database stored in the cloud then Firebase can come up as boon for you.

As we know every coin has two side and Firebase is no exception.

So lets look at the brighter side to start with.

  1. Firebase is designed with a model-observer scheme which is most useful for interactive apps. Any change in data done on the server is updated to the registered clients in real-time and the data syncs almost instantly on the client devices.
  2. Firebase is robust, cross-platform API for Android and iOS apps. It also supports Javascript with highly flexible security API. Along with this, it also supports login through Twitter, Facebook, and Google.
  3. You don’t need to worry about the data storage even if you are storing a lot of data as firebase itself hosts it which in turn tasks the burden from you to think about it.
  4. Firebase supports manipulating, deleting and reordering data in database
  5. Firebase also allow Data Analytics.
  6. Firebase provides flexible and rich front end.

Now lets look into other side of the Firebase.

  1. Unless your app runs of one centralised database updated by a vast quantity of users, it’s a major overkill.
  2. As firebase uses JSON, it does not lets to deal easily in terms of data-migration unlike simple SQL database.
  3. “Server-less means cost-less.” No, no, no: one day you will have to pay for it because of Costs! -Limited to 50 Connections and 100mb of Storage!.
  4. Dealing with relations with NoSQL is hard, dealing with relations with Firebase is quite difficult but remember that “Nothing is Impossible”.

Now let’s have a look at how to start with Firebase in the first place and know how exactly one needs to go through the initial stage setup.

  1. First thing you need to do is go to https://firebase.google.com/ and create an account. Once you gain the access to the console you can start by creating your own project.

2.Create your project in console

3. Add your project name here

4. Give the package name of your project which you are going to integrate in firebase. And also add SHA-1 key. Follow <http://stackoverflow.com/questions/27609442/how-to-get-the-sha-1-fingerprint-certificate-in-android-studio-for-debug-mode> to get SHA-1 key from android studio.

5. Now the google-services.json file will be downloaded on pressing the add app button in the above screen.

6.In third step Modify your build.gradle file as below.

7. Next go to your project dashboard. Find the Auth and get started. Go to set up sign in method and choose Email & Password and enable it.

Once done with the initial setup, you can do the below mentioned things

  1. Registration with firebase
  2. Login
  3. Change Password
  4. Send password reset email to registered email id
  5. Forgot Password
  6. SignOut

You will find demo project for above points in https://github.com/shah-Foram/FireBase Github project.

Hope this will help you!

Show your support

Clapping shows how much you appreciated Foram Shah’s story.