From the course: React: Cloud-Powered Apps with Firebase
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Deploying security rules for Cloud Firestore
From the course: React: Cloud-Powered Apps with Firebase
Deploying security rules for Cloud Firestore
- [Instructor] In the Firebase console for Cloud Firestore, you can go ahead and click on the rules tab to view the currently associated security rules. This tells us that the following rules in this block will be for the Cloud Firestore service. And match/databases/database/documents is actually the root of your database. The second match here tells it to match any document. So in totality, this is saying for any document in my database, allow read and write a false, which obviously means never. You can always change the security rules in the Firebase console. But we will actually be using the Firebase CLI to deploy security rules. It has the advantage, since any changes in rules can be tracked via Git. We have already installed the Firebase CLI, if you haven't, go ahead and install it now. And you can do that with npm install dash g Firebase tools. Make sure to sign in and test your Firebase CLI using Firebase login.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Cloud Firestore intro1m 55s
-
(Locked)
Cloud Firestore setup1m 38s
-
(Locked)
Deploying security rules for Cloud Firestore5m 10s
-
(Locked)
Creating documents4m 17s
-
(Locked)
Displaying user document4m 31s
-
(Locked)
Updating user documents, part 13m 53s
-
(Locked)
Updating user documents, part 25m 22s
-
(Locked)
-
-
-
-
-