Demo app for the Dart Dev Summit 2016. The application is written in Dart and uses the Firebase library.
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");
Enable Google login in Firebase console under the Authentication/Sign-in method
.
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"
}
}
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;
}
}
}