대부분의 어플리케이션을 만들 때 필요한 부분들을 자동으로 만들어주는 플랫폼
FireBase 특징
FireBase 사용하기
FireBase에서 프로젝트를 만들고 npm으로 설치 npm install firebase --save
firebase 파일을 만들고 모듈 추가 후 script 부분 넣어주기
// 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: "AIzaSyA2Igq3YrjLsF5lKBTrzY2NT4qfTTh8Um0",
authDomain: "goormchat.firebaseapp.com",
projectId: "goormchat",
storageBucket: "goormchat.appspot.com",
messagingSenderId: "919539470815",
appId: "1:919539470815:web:935f4d7afb11c6d76bf46a",
measurementId: "G-KLPFC7D7JX"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);