Firebase Studio, Use existing Firebase Project

Hey, im new to Firebase. I have an firebase project where i only use the firestore db. How can i add this Project to Firebase Studio? For example i want to Code an agent which can analyse the Documents in a Collection.

Are you asking about how to create a new project in Firebase Studio that utilizes an existing Firestore database?

  1. Create a Firebase Studio Project
  2. Change the firebase.json configuration to match the Firebase Firestore database of your choice.

If you’re asking how to create the entire agent with the correct system prompts and tools to accomplish your task then that’s a deeper discussion.

Hey dms,

Thanks you for your answer!

I wonder if this is the best Practice? I would have two different Firebase Projects right?

Thanks in advance,
Maurice

@Majestic_Moments you won’t be able to do this from App Prototyping agent today. If you try, the agent will create a new Firebase project with Firestore for you and that doesn’t sound like what you want.

Try prompting Gemini to guide you through the steps…

What are the steps for adding an existing Firebase project
with Firestore Database rather the creating a new one?

Gemini will respond with step-by-step directions for you to follow (which are basically the same as the ones @dms provided already). My point of my response is to suggest seeking help from Gemini when you have questions how to do something. You’ll find Gemini to be very helpful at giving detailed instructions that are easy to follow. You can even persist the instructions as a file if you add something like..

 Save the instructions to the file docs/foo.md so I may refer to them later.

And if any of the steps aren’t easy to understand, just ask Gemini to clarify the step for you.

1 Like