Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 1.36 KB

README.md

File metadata and controls

66 lines (40 loc) · 1.36 KB

Copy config

// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
  apiKey: "AIzaSyAvHLiIGkQWFN26dZl2-rYcpAAljFFb8Co",
  authDomain: "ngfirebase-ee485.firebaseapp.com",
  projectId: "ngfirebase-ee485",
  storageBucket: "ngfirebase-ee485.appspot.com",
  messagingSenderId: "1020830912308",
  appId: "1:1020830912308:web:41f426e2f5724d2ede5f61",
  measurementId: "G-9YK3HW076T"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);

npm install -g firebase-tools

Create Angualr App

  • ng new ng-firebase

Installing and Adding Firebase

npm install --save firebase @angular/fire