Setting up a Firebase database in just 3 steps
Google Firebase provides developers an API that allows you synchronize data across clients, besides this firebases easy, fast and secure structure is the main reason of the common usage of firebase.
Let just begin with setting our database up.
1- Creating an Firebase database
first we go to https://console.firebase.google.com/
we click on “Create a project”. after this there appear a screen where we set the name, service location and some other settings. you need to adjust them for your requirements.
2-Get your service account key
Go to project settings thats located at the top left,
by clicking Generate New Private Key you get a JSON file that contains your service account’s credentials, it’s needed to initialize the sdk.
3-Setup Node.js project
Now we are ready to setting up the Node.js application for our Firebase project. It’s very easy just install firebase-admin and putting the service key .json on the right path, done. (how to install firebase-admin: https://firebase.google.com/docs/admin/setup )
and voila! your firebase is ready to use. I will continue to share articles on a regular basis. See you at my next article 👋🏻