Skip to content

Commit

Permalink
Deploy to Firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rommsen committed Apr 5, 2018
1 parent 978f1ba commit d0d3410
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "fable-of-the-day"
}
}
13 changes: 13 additions & 0 deletions database.rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"rules": {
// won't let people delete an existing room
".write": "!data.exists()",
".read": true,
"$room": {
// only the store owner can edit the data
".write":
"auth != null && (!data.exists() || data.child('owner').val() === auth.uid)",
".read": true
}
}
}
19 changes: 19 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

0 comments on commit d0d3410

Please sign in to comment.