Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Latest commit

 

History

History
36 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.05 KB

Cross-Platform Cloud Firestore Plugin

A Firebase Firestore wrapper for Flutter that wraps cloud_firestore and firebase into a single API for use on both Flutter web and mobile.

Setup

Mobile

Follow cloud_firestore setup instructions for mobile setup.

Web

Add Firebase JavaScript libraries to html file and initialize your application with your variables.

<script src="https://www.gstatic.com/firebasejs/7.4.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.4.0/firebase-firestore.js"></script>
<script>
    firebase.initializeApp({
        apiKey: "API KEY",
        authDomain: "AUTH DOMAIN",
        databaseURL: "DATABASE URL",
        projectId: "PROJECT ID",
        storageBucket: "STORAGE BUCKER URL",
        appId: "APP ID",
        messagingSenderId: "sender-id",
        measurementId: "G-measurement-id"
    });
</script>

See Example for details

TODO

  • Add Unit Testing