MCPcopy Create free account
hub / github.com/firebase/quickstart-js / main

Function main

firestore/scripts/PopulateFirestore.js:163–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161};
162
163const main = async () => {
164 // Connect to emulators if a `demo` environment is pulled
165 if (app.options.projectId.indexOf('demo-') == 0) {
166 connectFirestoreEmulator(db, '127.0.0.1', 8080);
167 connectAuthEmulator(auth, 'http://127.0.0.1:9099');
168 }
169
170 await signInWithAnonCredentials();
171 await addMockRestaurants(generateMockRestaurants());
172};
173
174main();

Callers 1

Calls 3

addMockRestaurantsFunction · 0.85
generateMockRestaurantsFunction · 0.85

Tested by

no test coverage detected