Firebase: How to setup a Firebase service account

Vikash Kumar
Sep 27, 2020

To setup Firebase in a backend server, the Firebase-Admin SDK is required which needs a Firebase service account.
Follow the steps below to setup a Firebase service account.

Step#1: Create a Firebase project and add a web app.

Follow the steps here.

Step#2: Generate New private key

Go to Settings -> Service accounts in Firebase console and Press ‘Generate new private key’.

Step#3: Download the ServiceAccount.json file

Click on ‘Generate key’. This will download a service account JSON file. This JSON is required to setup the Firebase Admin SDK in a backend server.

Step#4: Start using in your app

Setup Firebase Admin SDK in a NodeJs backend. Follow the steps here.

--

--

Vikash Kumar

A passionate coder, technology enthusiast, tutor and continually falling in love with JavaScript. Currently exploring latest JS frameworks and Flutter.