Firestore Security Rules Setup Advanced FirebaseFirestore











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=hQI_w4AZ92I

Github Repo With Code: https://github.com/samfromaway/fireba... • Documentation: https://firebase.google.com/docs/fire... • Tool: https://code-snippet-generator1.netli... • COMMANDS: • npm install -g firebase-tools • firebase login • firebase init • firebase deploy --only firestore:rules • 0:00 Introduction • 1:35 Setup • 4:47 Deploy Rules • 7:56 Example Rules • • Today we are going to look at how to keep your database safe with cloud Firestore security rules. • Firestore rules are basically your last defense for your database. We can write rules to protect our database from data we don’t want. So, what does that includes? • With Firestore we don’t have to sanitize our data, this is done by Firestore itself, but we most probably want to validate it. and that’s what we can do with these rules. We can also use information from authentication but more about that in the video. • We have two main possibilities to check data. • Request.resource.data, which is the incoming data • And resource.data which is the existing data. • So if we want to check data that a user wants to add to the database, we check the Request.resource.data and if we want to check something about the data that’s already in the database. We check the resource.data object. • The last thing before we start with the tutorial is that we write the Firestore rules with a custom Firestore rules language that resembles Javascript. • To show you how the Firestore rules work I’ll use my firebase react tutorial. • If you haven’t seen it and if you are just interested in learning how the Firestore rules work, don’t worry you will still be able to follow the video if you have a basic understanding of Javascript and Firestore. • Furthermore, this tutorial applies not just to react but everything regarding Javascript. So if you use another javascript framework or vanilla Javascript, this tutorial still applies to you. • So let’s get started with writing our rules, we can either write the rules directly here in the, but it’s recommended to set up a firebase project in your development environment... • CONTACT: • 📱 Facebook -   / devworldinfo   • 🌎 Website - https://www.dev-world.info • 📧 Email - [email protected] • ABOUT THIS CHANNEL: • Dev World is a mix of tutorials and educational videos around Coding, Online Marketing, and Design. • #Coding #Webdesign #Marketing

#############################









Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org