Skip to content

Commit

Permalink
Add demo firebase config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Gaberel committed Dec 26, 2017
1 parent e7888b3 commit 53ef903
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions example/firebase.json
Expand Up @@ -4,11 +4,23 @@
},
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"storage": {
"rules": "storage.rules"
}
}
14 changes: 14 additions & 0 deletions example/firestore.indexes.json
@@ -0,0 +1,14 @@
{
// Example:
//
// "indexes": [
// {
// "collectionId": "widgets",
// "fields": [
// { "fieldPath": "foo", "mode": "ASCENDING" },
// { "fieldPath": "bar", "mode": "DESCENDING" }
// ]
// }
// ]
"indexes": []
}
7 changes: 7 additions & 0 deletions example/firestore.rules
@@ -0,0 +1,7 @@
service cloud.firestore {
match /databases/{database}/documents {
match /todos/{id} {
allow read, write;
}
}
}
7 changes: 7 additions & 0 deletions example/storage.rules
@@ -0,0 +1,7 @@
service firebase.storage {
match /b/{bucket}/o {
match /test.png {
allow read, write;
}
}
}

0 comments on commit 53ef903

Please sign in to comment.