Get apiKey to firebase

Junior Mcq picture Junior Mcq · May 28, 2016 · Viewed 9k times · Source

I need get apiKey to firebase app.

In documentation the example is:

var config = {
      apiKey: '<your-api-key>',
      authDomain: '<your-auth-domain>',
      databaseURL: 'https://tecki.firebaseio.com/',
      storageBucket: '<your-storage-bucket>'
    };
firebase.initializeApp(config);

and look in the console, documentation and not where to find it .

Answer

Kai picture Kai · May 28, 2016

Here's how I found it:

  1. Go to: https://console.firebase.google.com/

  2. Under Projects using Firebase click on the project you want to get the config for or click "Create new Project"

  3. Click the red Add Firebase to your web app button. See image below. Add Firebase to your web app button

Hope that helps.

Good luck.