Home > Enterprise >  How to get firebase data for the development of the project?
How to get firebase data for the development of the project?

Time:09-21

I have built this website using reactjs, firebase. I would like to know if someone wants to contribute to this project how should he/she get the data that is stored in my firebase account for the development of the website? enter image description here

CodePudding user response:

This is a very open-ended question, typically though if it's for local development I'd just give them access to the firebase project as a collaborating member.

Alternatively, you could be looking into the import/export features of Firebase.

Use the firestore export command to export all the documents in your database, replacing [BUCKET_NAME] with the name of your Cloud Storage bucket. Add the --async flag to prevent the gcloud tool from waiting for the operation to complete.

gcloud firestore export gs://[BUCKET_NAME]

And importing it on their project in a similar manner:

Use the firestore import command to import documents from a previous export operation.

gcloud firestore import gs://[BUCKET_NAME]/[EXPORT_PREFIX]/

where [BUCKET_NAME] and [EXPORT_PREFIX] point to the location of your export files.

See the documentation for further details https://firebase.google.com/docs/firestore/manage-data/export-import

  • Related