Skip to content

Janamou/firebase-demo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 

Dart + Firebase = demo

Demo app for the Dart Dev Summit 2016. The application is written in Dart 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",
      storageBucket: "TODO");

Google login

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

Database rules

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

For example:

{
  "rules": {
    ".read": true,
    ".write": "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/<YOUR_STORAGE_BUCKET>/o {
    match /{allPaths=**} {
      allow read;
      allow write: if request.auth != null;
    }
  }
}

About

Dart + Firebase = ♥️ demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published