# Migrating my app with mock data to firestore

**URL:** https://community.firebasestudio.dev/t/migrating-my-app-with-mock-data-to-firestore/11948
**Category:** General
**Created:** [May 10, 2025, 5:49am UTC](https://community.firebasestudio.dev/t/migrating-my-app-with-mock-data-to-firestore/11948 "2025-05-10T05:49:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jan\_Janse\_van\_vuuren](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/jan_janse_van_vuuren/32/3663_2.png) [@Jan\_Janse\_van\_vuuren](https://community.firebasestudio.dev/u/Jan_Janse_van_vuuren)
#### Post date: [May 10, 2025, 5:49am UTC](https://community.firebasestudio.dev/t/migrating-my-app-with-mock-data-to-firestore/11948/1 "2025-05-10T05:49:49Z")

</div>

Hi guys I am not a coder, I created my app with firebase studio the app is now complete but with mock data and not connected to a database. I thought the database creation would happen automatically as I build out my app. But it seams not to have done that. Is there a tutorial or an explanation on how to connect your app in firebase studio to firestore.

---

<div class="post-metadata">

### Author: ![Thibaut\_GADIOLET](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/thibaut_gadiolet/32/7927_2.png) [@Thibaut\_GADIOLET](https://community.firebasestudio.dev/u/Thibaut_GADIOLET)
#### Post date: [June 10, 2025, 3:05pm UTC](https://community.firebasestudio.dev/t/migrating-my-app-with-mock-data-to-firestore/11948/2 "2025-06-10T15:05:18Z")

</div>

This an announced feature at the last Google I/O. I remind them saying that it’s supposed to be rollout “in the coming weeks”. I’m also waiting for this. Anyone has more info ?

---

<div class="post-metadata">

### Author: ![Aga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/aga/32/7629_2.png) [@Aga](https://community.firebasestudio.dev/u/Aga)
#### Post date: [June 10, 2025, 8:34pm UTC](https://community.firebasestudio.dev/t/migrating-my-app-with-mock-data-to-firestore/11948/3 "2025-06-10T20:34:59Z")

</div>

I am also trying to connect to Firestore.

I think I got the right roles configured in IAM for the service account for my app. I am now getting this error: Error: Firebase Admin SDK Initialization Failed: Cannot read properties of undefined (reading ‘INTERNAL’). Check server logs for details.

\*“When you call `admin.initializeApp()` (with no arguments), the Firebase Admin SDK uses **Application Default Credentials (ADC)**. It automatically discovers the service account associated with the environment it’s running in.” - Mr AI

My the call admin.initializeApp() return some fictitous serivce account according to the logs.

I have a ticket with support for this. Waiting to hear back.

---

<div class="post-metadata">

### Author: ![carey\_blunt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/carey_blunt/32/6847_2.png) [@carey\_blunt](https://community.firebasestudio.dev/u/carey_blunt)
#### Post date: [June 11, 2025, 7:03pm UTC](https://community.firebasestudio.dev/t/migrating-my-app-with-mock-data-to-firestore/11948/4 "2025-06-11T19:03:41Z")

</div>

Go to the firebase console and select a firestore db and create it. It will tell you how to initialise the DB in your app. Gemini will help you link the DB to the app and write your data to the firestore. In the Console as you create the DB there are some videos to help.
