# FIREBASE PROJECT

This project has Firebase as a database (<https://firebase.google.com/>), therefore we must create a project in firebase (<https://console.firebase.google.com/>) and within this project we must create three applications: Web App, Android App and iOS App.

We must also enable Firebase Firestore.\
&#x20;If you haven't done it before, in the official[ Firebase documentation](https://firebase.google.com/docs?authuser=0)

\
&#x20;You can also try the [Firebase site](https://console.firebase.google.com/project/fir-demo-project/overview) to learn how it works (<https://console.firebase.google.com/project/fir-demo-project/overview>) For your database you can follow the steps:

**1 -**  Create an account in Firebase and go to [firebase console ](https://console.firebase.google.com/)(<https://console.firebase.google.com/>) Create a new project

![ image-1](https://2729766939-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MlG5nIwcyCY9J1rAO9u%2F-MlG9iyvYXwfCUFi4xbd%2F-MlGBpzSg98QdVybSI3b%2Fimage1.png?alt=media\&token=264c019b-f2fc-4c01-b358-0cf7366e6f64)

**2 -** Create a Cloud Firestore database as in image&#x20;

![ image-2](https://2729766939-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MlG5nIwcyCY9J1rAO9u%2F-MlG9iyvYXwfCUFi4xbd%2F-MlGC9_zcyzOhCvTTRjq%2Fimage2.png?alt=media\&token=589820db-9346-4fad-9892-923c54cab3ec)

3 . We open the project configuration (image-3) and create three applications: Web, iOS and Android (image-4) and follow the steps indicated in the documentation

For the web application, we must copy the configuration shown in image-5 to use in the **`config.js`** files in the *`src/firebase/config.js`* folders of the Web project and the Mobile project in the file ***`src/firebase/config.js`***

![ image-3](https://2729766939-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MlG5nIwcyCY9J1rAO9u%2F-MlG9iyvYXwfCUFi4xbd%2F-MlGCc6_M_2mUKns4m9m%2Fimage3.png?alt=media\&token=74928ad7-e1ec-48c0-b8d0-50e8ea93f448)

![ image-4](https://2729766939-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MlG5nIwcyCY9J1rAO9u%2F-MlG9iyvYXwfCUFi4xbd%2F-MlGCkk_LqiREtKuE4sy%2Fimage4.png?alt=media\&token=6b1128d1-7ed2-4657-9f94-461b361018ca)

![ image-5](https://2729766939-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MlG5nIwcyCY9J1rAO9u%2F-MlGCs-u8VMg7eX45G7A%2F-MlGCwAcQNupSm5rOH00%2Fimage5.png?alt=media\&token=19dd588a-5984-4344-907b-1944716d92e0)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://miguelapps.gitbook.io/instructions-restaurant-app/firebase-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
