JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q52139F
  • License ISC

Firestore Client for react-admin with very local feature on GET_LIST

Package Exports

  • ra-data-firestore-client-naggertooth

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ra-data-firestore-client-naggertooth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ra-data-firestore-client

A Firestore Client for the awesome react-admin framework. This library is a modified version of aymendhaya/ra-data-firebase-client

For a quick demo:

clone the repo & run

npm install 
npm run init 
npm run demo 

To install & test RestProvider & AuthProvider:

npm install ra-data-firestore-client-naggertooth

Check example implementation.

For AuthProvider, don't forget to add the user UID to your Firestore DB under /users matching the following structure:

"users": {
    "UID": {
        "isAdmin": true
    }
}

Important

Firestore doesn't have counter of documents in a collection without taking a snap So I got forced to add serverside function that increments {collection}/config/numberOfDocs with write operations because my collection counts over than 50000 docs


ra-data-firestore-client also supports base64 image uploading.