From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Secure your data in Cloud Firestore and Cloud Storage
From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Secure your data in Cloud Firestore and Cloud Storage
- For this new and very last demonstration I'd like to start from zero. So I have wiped out everything from the database because now we're using also the information of the user to display in the gallery. So we must also include the information of the user. So when we send the data to the database, and last what we're going to do is secure, also the database the access to the database. So let's do that. Let's go back to the form. So you see that we have defined here a new property to indicate their user information. So let's go back to the locations where we have defined this functions to create a new document and then send the data to the database. I'm going to add this info, which is user and that's going to be inputs user. Here we go. That's going to be enough. And also we must specify here in the card I'm going to add this user prop. And here instead. So we used to have this, actually this used to be heart…
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)
Start with Firebase Authentication and select the provider2m 57s
-
(Locked)
Google Cloud Platform: Create new credentials3m 17s
-
(Locked)
Authenticate and manage users from the application5m 46s
-
(Locked)
Manage the state with the Context API: Component Provider5m 3s
-
(Locked)
Manage the state with the Context API: Custom hook5m 34s
-
(Locked)
Subscribe components to the context changes: User connected4m 59s
-
(Locked)
Create new documents with the user connected5m 26s
-
(Locked)
Secure your data in Cloud Firestore and Cloud Storage5m 43s
-
(Locked)
-
-
-
-