Skip to content

Commit

Permalink
Initialized example file for api configs
Browse files Browse the repository at this point in the history
  • Loading branch information
coderpradp committed Nov 3, 2018
1 parent 2280ab1 commit 0d77810
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
29 changes: 29 additions & 0 deletions database.rules.json.tmp
@@ -0,0 +1,29 @@
{
"rules": {
".write": "auth.uid === 'yourUID'",
".read": true,
"settings": {
".validate": true
},
"media": {
"$id": {
// ".write": "auth != null && auth.uid == $uid && root.child('users').child(auth.uid).child('role').val() === 'admin' "
}
},
"nav": {
".validate": true
},
"fields": {
".validate": true
},
"contents": {
".validate": true
},
"routes": {
".validate": true
},
"$other": {
".validate": false
}
}
}
10 changes: 10 additions & 0 deletions src/admin/firebase_config/config.js.tmp
@@ -0,0 +1,10 @@
const config = {
apiKey: '',
authDomain: '',
databaseURL: '',
projectId: '',
storageBucket: '',
messagingSenderId: ''
}

export default config

0 comments on commit 0d77810

Please sign in to comment.