From the course: Firebase Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Populate Firestore with development data

Populate Firestore with development data - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

Populate Firestore with development data

- [Instructor] Okay, so we've seen how basic querying in Firestore works, as well as how to control access to the Firestore by using security rules. The last piece of the puzzle before we have our front end start seriously interacting with Firestore, is to populate our Firestore with some testing data, so that we can immediately start to use it. This is where we're going to look inside this test directory that we haven't touched yet. You'll notice that inside this test directory, we have this testData.js file. And inside here, you'll see that we have a bunch of JSON data. It's got reservations, restaurants, reviews, and this date availabilities array, which we'll be using to allow users to see what times are available for making reservations at given restaurants. So what we're going to do in this video is write a script to take all of this data and insert it into our Firestore. But before we can do that, there's one…

Contents