"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"install-dependencies": "npm install firebase react-firebase-hooks"
},
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
apiKey: "AIzaSyCYhMdciPP9F9Gs38fUEHnOP_C63RwkDFo",
authDomain: "cs124-firestore-impl-exercise.firebaseapp.com",
projectId: "cs124-firestore-impl-exercise",
storageBucket: "cs124-firestore-impl-exercise.appspot.com",
messagingSenderId: "492659596453",
appId: "1:492659596453:web:fa8ea46ba19f37c0fa414c"
};
const firebaseApp = initializeApp(firebaseConfig);
const db = getFirestore(firebaseApp);
Each team should use a different collection name. Use the name People-section-team (where section is either 1 or 2 and where team is one of 2, 3, 4, 5 6, 7, 8, 9, T, J, Q, K, A) depending on which card pair you were randomized with. As an example, the group in section 1 that got queens would use the collection name "people-1-Q".
Hint: declare a constant in App.js containing your collection name. If you run into problems with your collection, feel free to create another empty collection with a similar name (perhaps People2-section-team)
const q = ...; // Fill in query here const [people, loading, error] = useCollectionData(q);
Hint: use setDoc().
Test to ensure you can create new (empty) people.
Hint: use updateDoc().
Test to ensure you can edit people.
Hint: use deleteDoc.
Test to ensure you can delete people.
What happens programatically in the People application in window A when a change is made in window B?
Make sure the UI for this functionality is designed well.