All Projects → eBay → firebase-remote-config-monitor

eBay / firebase-remote-config-monitor

Licence: Apache-2.0 license
Monitors firebase remote config values, posting changes to slack

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to firebase-remote-config-monitor

flagsmith
Open Source Feature Flagging and Remote Config Service. Host on-prem or use our hosted version at https://flagsmith.com/
Stars: ✭ 2,309 (+1943.36%)
Mutual labels:  remote-config
React Native Firebase
🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
Stars: ✭ 9,674 (+8461.06%)
Mutual labels:  remote-config
growthbook
Open Source Feature Flagging and A/B Testing Platform
Stars: ✭ 2,342 (+1972.57%)
Mutual labels:  remote-config
featurehub
FeatureHub - cloud native feature flags, A/B testing and remote configuration service. Real-time streaming feature updates. Provided with Java, JavaScript, Go, .Net, Android and Flutter SDKs.
Stars: ✭ 136 (+20.35%)
Mutual labels:  remote-config
flagsmith-nodejs-client
Flagsmith Node JS Client. Flagsmith lets you manage features flags across web, mobile and server side applications. Get builds out faster. Control who has access to new features.
Stars: ✭ 13 (-88.5%)
Mutual labels:  remote-config
flagsmith-js-client
Javascript Client for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://www.flagsmith.com/
Stars: ✭ 42 (-62.83%)
Mutual labels:  remote-config
flagsmith-java-client
Java Client for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://www.flagsmith.com/
Stars: ✭ 16 (-85.84%)
Mutual labels:  remote-config
js-sdk
JavaScript frontend SDK for ConfigCat. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.
Stars: ✭ 21 (-81.42%)
Mutual labels:  remote-config

Firebase Remote Config Monitor

Firebase Cloud Function built on node 8 which will automatically post any changes to Firebase Remote Config to Slack.

Project Name had 2 changes
Condition Added: SampleCondition
Firebase User {
   "expression": "device.os == 'android' && percent <= 50",
   "tagColor": "CYAN",
   "position": 23
}
Parameter Added: SampleParameter
{
   "defaultValue": {
   "value": "true"
},
   "conditionalValues": {
      "SampleCondition": {
         "value": "false"
      }
   }
} version 23

Usage

To use this, you must deploy this as a Firebase Cloud Function. For details on enabling Cloud Functions for Firebase, see Google's documentation. This function will automatically subscribe to Remote Config's onUpdate function and post changes any changes to remote config to the specified Slack channel.

Setup Steps

This app is powered by a combination of Cloud Functions for Firebase and the Firebase Remote Config API. You will need to be an administrator on your Firebase Console account to perform the following steps.

Enable Firebase Remote Config API

This app uses the Firebase Remote Config API which must be enabled on your google API project prior to running the app.

  • Visit the Google APIs dashboard at: https://console.developers.google.com/apis/dashboard
  • Select the project you wish to enable this for, (this will be the same name as your Firebase Console project)
  • Select Firebase Remote Config API from the list of APIs
  • Enable this API
    • Note: this may take a few minutes to take effect.

If you do not have this enabled, or the update has not had time to take effect, you will receive an error in the Cloud Function's logs when this function attempts to run.

Generate a Slack webhook URL

This app will post to the webhook URL defined within the config file. The payloads this app creates are crafted for Slack.

To create a Incoming webhook follow the steps detailed by Slack at https://api.slack.com/incoming-webhooks

You need to modify the slack_config.json file with the webhook created. You also will add the display name for the project you would like to see when the function posts to slack. The config should look like:

{
	"slackWebHookUrl": "https://hooks.slack.com/services/your/webhook/url",
	"siteDisplayName": "Your Project's Display Name"
}

Cloud function Installation

To deploy your cloud function follow the steps documented by Google from the commandline in the base project directory. Be sure to select lanaguage Javascript and do not overrwrite the index.js or package.json file when prompted.

The last step should be running the command firebase deploy --only functions which will deploy your function to firebase.

To see the function in action, go to the Remote Config section of your firebase console, and then make and publish a change to your remote config values.

Testing

Firebase Remote Config Monitor is tested with the Mocha for scenario definition and Sinon for dependency injection.

npm install
npm test

License

© 2018 eBay Inc. Developer: Jake Hall

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. See the LICENSE file for more details.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].