목록2021/03/25 (2)
hmk run dev
firebase.google.com/docs/firestore/manage-data/add-data?authuser=0 Cloud Firestore에 데이터 추가 | Firebase 다음과 같은 몇 가지 방법으로 Cloud Firestore에 데이터를 쓸 수 있습니다. 문서 식별자를 명시적으로 지정하여 컬렉션 내의 문서 데이터를 설정합니다. 컬렉션에 새 문서를 추가합니다. 이 경우 Clo firebase.google.com 더하기 const todo = firestore.collection("todo"); todo.add({ text: "캘리그라피 배우기", completed: false }).then((docRef) => { console.log(docRef); console.log(docRef.id)..
firebase.js import firebase from "firebase/app"; import "firebase/firestore"; const firebaseConfig = { apiKey: "AIzaSyC9rCMVUMT2SwB9TaE0Ww8ehtvD25oJ1J8", authDomain: "sparta-react-15fb3.firebaseapp.com", projectId: "sparta-react-15fb3", storageBucket: "sparta-react-15fb3.appspot.com", messagingSenderId: "971471391477", appId: "1:971471391477:web:29b4fc8ec136393b6d53bc", measurementId: "G-LEE70HB..