Skip to content

Commit 714daef

Browse files
committed
Update Firebase sample data instructions
1 parent eb89ced commit 714daef

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

docs/integrations/firebase.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,19 +250,22 @@ Here’s an example of enabling email/password authentication:
250250

251251
Dreamflow lets you add sample data to your Firebase project for easier development and testing. The generated data follows your app’s schema, so you can quickly check how your app works with populated users, collections, and documents.
252252

253-
To add sample data from Dreamflow, go to the **Firebase** module **> Add Sample Data to Firebase**. Enter the email address of your test account in the **User Email** field. This account will be associated with the generated sample data. Click **Generate Sample Data**.
253+
To add sample data from Dreamflow, go to the **Firebase > Sample Data**, and follow the instructions below:
254254

255-
Once the process is complete, you will see the generated sample data entries inside your **Cloud Firestore** under the respective collections defined in your schema.
255+
- **For Apps with Login Functionality:** First, sign up in your app using an email and password. After logging in, enter the same email address in the **User Email** field and click **Generate Sample Data**. This will generate sample records linked to that user account.
256+
257+
![add-sample-data-firebase-with-login.avif](imgs/add-sample-data-firebase-with-login.avif)
258+
259+
- **For Apps without Login Functionality:** You can skip the email step, as it’s optional. Simply click **Generate Sample Data** to generate test documents directly in your Firestore Database.
260+
261+
![add-sample-data-firebase-without-login.avif](imgs/add-sample-data-firebase-wihtout-login.avif)
256262

257263
:::warning
258264

259265
You can only generate sample data **once.** If you need to modify or remove the sample data later, you can do so directly in the **Firebase Console** under **Firestore Database**.
260266

261267
:::
262268

263-
264-
![add-sample-data.avif](imgs/add-sample-data.avif)
265-
266269
:::info
267270

268271
This process only inserts sample data into the **Firestore Database** for the specified user email. It does **not** create a user in Firebase Authentication. Make sure the user with the specified email exists in Firebase Authentication to be able to access the data.
29.4 KB
Binary file not shown.
52.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)