Firebase Remote Config API

348 views
Skip to first unread message

orhan arıkan

unread,
Jun 29, 2018, 10:48:56 AM6/29/18
to Firebase Google Group
Hello I'm currently developing some example web applications with firebase. The admin sdk is very easy to use. I wanted to test Remote Config feature. Also im experimenting node.js as backend server.

When I checked to Remote Config docs, It looks like i have to use REST API and It requires tons of boilerplate code to fetch a single config as shown here https://github.com/firebase/quickstart-nodejs/blob/master/config/index.js. And I tend to not use libraries that requires tons of boilerplate.

So my questions are;

1) Is firebase providing more sane and easy to use API for node.js like firebase-admin library?
2/ Can we use remote-config on client side as web app like a js library?

Thanks

Doug Stevenson

unread,
Jun 29, 2018, 6:44:49 PM6/29/18
to Firebase Google Group
There's currently no admin library for working with Remote Config, though that would be a great thing to have.  There's currently no browser client support for Remote Config.  (You can file feature requests here.)

Some things to note about that code sample.  The only real "boilerplate" there is building a JWT from a service account file.  The rest is how the author chose to implement the HTTP request.  Gzip probably isn't necessary, and other client libs might even do that for you.  You choose how you want to make that request.  You could even implement your own library that wraps up whatever repetitive work you do for one request and reuse that.

Doug
Reply all
Reply to author
Forward
0 new messages