Skip to content

Upload & Donwload documents in bulk to a firestore collection

Notifications You must be signed in to change notification settings

magg77/csvToFirestore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firestores BD

Upload csv file to firestore with javascript

Features:

  • Upload CSV : You can upload documents to a firestore collection in bulk
  • Download collection to CSV : You can download the documents of a collection to CSV

Upload front Upload Data Data bd firestore config firebase config firebase

firebaseConfig.js

  • create file ./src/firebaseConfig.js inside the src directory
  • add the configuration that firebase-admin console generates, when you generate a new project
```

// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app"
import { getFirestore, collection, getDocs } from 'firebase/firestore';

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
  apiKey: "",
  authDomain: "",
  projectId: "",
  storageBucket: "",
  messagingSenderId: "",
  appId: "",
  measurementId: ""
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const db = getFirestore(app)


export {db}

```

About

Upload & Donwload documents in bulk to a firestore collection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published