Where is my firebase serviceAccountCredentials.json file - node.js

Trying to setup Firebase in Node and I need the serviceAccountCredentials.json which the docs say you just download from the console.
I have searched the console and can't for the life of me find where this would be.
Can anyone point me as to where I get this?

Related

I have a problem with my NODEJS API on planetHoster

I created my very first NODEJS API. Locally, it works well but I just hosted it on planetHoster and it doesn’t work anymore. When I enter my query, I find the error "Cannot GET/Nodev2/idcc/list" then my route was functional locally. Do you have any assumptions? Thank you in advance!
I can share my code if you want see
I tried to change directory/file names

Read Words from a PDF or DOC file in React or Firebase Cloud Functions

I have a simple React application (with no back-end servers), hosted on Firebase.
The application takes in a file(either a word document or a pdf) and stores it in firebase storage and stores the metadata in firestore.
I have a requirement to read the number of words in the file and if it is more than 500, block the upload.
I have been searching for a way to do this using just React and i think it cant be done. The other option i have is to use Cloud Functions in Firebase which use NodeJs and even with that i am not finding any solution to do this.
At this point in time, i cant setup a proper back-end server to do this work.
I would be grateful if someone can point me in the right direction to solve this.
Thanks.
A few pdf readers exist for node which can be installed in Cloud Functions since most don't support in browser. It is advised to upload the pdf to storage to save processing issues, simply add the reference path to the Cloud Function payload and delete it after completion.
pdfreader at this current time the best available for PDF's parsing, but requires a node environment such as Cloud Functions.
The second issue is reading image-based pdf's which require OCR, link provided.
https://www.npmjs.com/package/pdfreader
https://www.npmjs.com/package/pdf-ocr

Google Directory API nodejs

I have been trying to make a script in nodejs to take a email and add it to google groups by the api and delleting it after a time i couldn't get it working i have tried everything but could not get it to work any help would be good
thanks in advainc.

retrieving only the required tag from http request into node js console application

I am retrieving a certain amount data into a node js console application and the results is as shown in the image. My question here is, I dont want all the tags to be displayed in the console. I just want the 'revenuegrowth' tag to be displayed. I have tried a few things related to js regex but i am not able to find a solution for this one. I feel this is quite simple but i am not able to do it. Any help will be much appreciated. Thanks in advance.Results

How should I use google api node js client ?

I'm trying to call GA api in a react/webpack/babel project using google-api-nodejs-client. However it doesn't work. I've got multiple error in my console. On the google-api-nodejs-client GitHub's issues I found the following answers about a similar issue :
google-api-nodejs-client is not meant to be used in a browser—it won't
work. googleapis (google-api-nodejs-client) will work in Node.js.
Excluding googleapis from any server-side bundle (just let Node's
module system load it for you) is the best option.
To access Google APIs from a browser, please use the Google API Client
Library for JavaScript (gapi).
I don't really understand it. Can someone explain this differently ?
thanks.

Resources