Food Hunter
Search…
Setup database

Adding Firestore indexes

Go to Firestore in Firebase admin panel
Firestore and indexes tab
Click on "Add index" and add following index:
Creating composite index
In the bottom of the form in "Query scopes" field select "Collection" option.
After filling form click "Create index"
This step is required for dashboard cloud function works
Let's setup firestore rules. Go to rules tab and replace existing rules with following:
1
service cloud.firestore {
2
match /databases/{database}/documents {
3
match /{document=**} {
4
allow read;
5
allow write: if request.auth != null;
6
}
7
}
8
}
Copied!
Congratulates! Database is ready
Last modified 6mo ago
Copy link