From the course: Google Cloud Platform Essential Training for Developers: Cloud-Native Development with Gemini
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Choosing a database: Cloud SQL vs. Firestore - Google Cloud Platform Tutorial
From the course: Google Cloud Platform Essential Training for Developers: Cloud-Native Development with Gemini
Choosing a database: Cloud SQL vs. Firestore
Okay, so now what we're going to do is set up a Firestore demo, and this demo is going to be based around, let's say you're building a user management system for your mobile web app, and you need to set up a user's collection and add a new admin to it. Now you may be asking, what does that mean exactly? Well, let's think about a physical Manila folder that you may see around the office, if you go into the office. That folder is the collection. It doesn't hold the data itself. It just holds the papers inside it. And the papers are the documents. So each sheet of paper represents one specific user like Mark and contains their actual data. So the e-mail, the name, the role, all those specific details. So when we're setting up Firestore, we're going to use the native mode, which actually allows you to do real-time client updates. And it's really good for, you know, mobile and web apps. So let's jump in the Cloud Shell, and we're gonna set up some environment variables first, because this…