Skip to content

oonid/firebase-firestore-ng

 
 

Repository files navigation

AngularDart + Firebase Firestore = ♥ demo

The application is written in AngularDart and uses the Firebase library.

Dart + Firebase App

Before running

Your credentials

Before running the app, update the web/main.dart file with your Firebase project's credentials:

initializeApp(
      apiKey: "TODO",
      authDomain: "TODO",
      databaseURL: "TODO",
      projectId: "TODO",
      storageBucket: "TODO");

Google login

Enable Google login in Firebase console under the Authentication/Sign-in method.

Setup OAuth2 Consent Screen.

Database rules

Set database rules on who can access the database under the Database/Rules. More info on Database rules.

For example:

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read;
      allow write: if request.auth != null;
    }
  }
}

Storage rules

Set storage rules on who can access the storage under the Storage/Rules. More info on Storage rules.

For example:

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read;
      allow write: if request.auth != null;
    }
  }
}

About

AngularDart + Firebase Firestore = ♥️ demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 47.6%
  • HTML 33.3%
  • CSS 19.1%