From 0e21edc3c026320b54ee4fbdac6ef4fc4c3c0eb7 Mon Sep 17 00:00:00 2001 From: Clark Brown Date: Wed, 19 Dec 2018 05:02:23 +0000 Subject: [PATCH] Firebase hosting --- .firebaserc | 1 + database.rules.json | 6 ++++++ firebase.json | 19 +++++++++++++++++++ public/index.html | 19 +++++++++++++++++-- 4 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 .firebaserc create mode 100644 database.rules.json create mode 100644 firebase.json diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.firebaserc @@ -0,0 +1 @@ +{} diff --git a/database.rules.json b/database.rules.json new file mode 100644 index 0000000..c0aa595 --- /dev/null +++ b/database.rules.json @@ -0,0 +1,6 @@ +{ + "rules": { + ".read": "auth != null", + ".write": "auth != null" + } +} \ No newline at end of file diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..94a0b21 --- /dev/null +++ b/firebase.json @@ -0,0 +1,19 @@ +{ + "database": { + "rules": "database.rules.json" + }, + "hosting": { + "public": "public", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +} diff --git a/public/index.html b/public/index.html index eb4e157..8df0bfa 100644 --- a/public/index.html +++ b/public/index.html @@ -11,8 +11,23 @@ - - + + + + + +