I have downloaded the zip of Firebase real-time database node.js sample
and navigate to the database section
https://github.com/firebase/quickstart-node
How to download your serviceAccountKey.json file
1. Open Your firebase project
2. On the navigation drawer, select the project overview
3. Then select "Project settings"
4. On the new page, Select Service Accounts
5. Download file and store in a secured place.
Note: Do not commit this file to git or share with authorized users.