Add Firebase

Install the firebase JS client.

yarn add firebase
# Or 
npm i firebase

Change PROJECT_NAME to your project name and grab your firebase config here :

https://console.firebase.google.com/project/PROJECT_NAME/settings/general/

Your config file should look something like this :

src/test-credentials.ts
// Firebase Config
export const config = {
  apiKey: "API_KEY",
  projectId: "PROJECT_ID",
  databaseURL: "DATABASE_URL",
  authDomain: "AUTH_DOMAIN",
  // OPTIONAL
  storageBucket: "STORAGE_BUCKET",
  messagingSenderId: "MESSAGING_SENDER_ID"
};

In the example repo this file is located in src/test-credentials.ts but you won't be able to find it because it's added to the .gitignore

Make sure you do the same if your repository is public.

Git Commit

Last updated