# Firebase Configuration

## **Create Firebase Project**

* &#x20;  Open the Firebase Console and create a new project.&#x20;

<figure><img src="/files/pG0yF1k1r41l2hKKkzku" alt=""><figcaption></figcaption></figure>

Enable Google Analytics and Click on continue button

<figure><img src="/files/LwoOLElQcBzrO7ahikHw" alt=""><figcaption></figcaption></figure>

Select location and Accept the terms and then click on Create project button

<figure><img src="/files/itJuKIyAgFb24Ik51G0S" alt=""><figcaption></figcaption></figure>

## Enable Sign-in Method

* In Firebase console, open the Authentication section.
* On the Sign-in Method tab, enable the Google Sign and Email/Password method and click save.
*

```
<figure><img src="/files/eg93Is8PC24IgmXpRqJ9" alt=""><figcaption></figcaption></figure>
```

*

```
<figure><img src="/files/X7xHlRheb1nk8X2oMEHH" alt=""><figcaption></figcaption></figure>
```

*

```
<figure><img src="/files/EGzhr78RmjK2x237pYqr" alt=""><figcaption></figcaption></figure>
```

*

```
<figure><img src="/files/7uBeLS13sd7ac6lEl40P" alt=""><figcaption></figcaption></figure>
```

## Cloud Firestore Database&#x20;

* Go to Firestore Database -> click on create database
*

```
<figure><img src="/files/OByM2zp0yaGjoeVXorMX" alt=""><figcaption></figcaption></figure>
```

* Select location and click on the Next button
*

```
<figure><img src="/files/7GzflGntzJeMkY3fHSEv" alt=""><figcaption></figcaption></figure>
```

* Select start test mode and go to create.
*

```
<figure><img src="/files/0J3oj40Ktwin6GqJW2St" alt=""><figcaption></figcaption></figure>
```

## Storage

* Go to storage and -> click on Get started
*

```
<figure><img src="/files/7WzYTvU2Y8Cpl22zEmsX" alt=""><figcaption></figcaption></figure>
```

* Select start test mode and click on Next
*

```
<figure><img src="/files/MsoqT6YtY5wEoyuX7rzf" alt=""><figcaption></figcaption></figure>
```

Click on Done

<figure><img src="/files/g14blBIIvVRygKIhWeD7" alt=""><figcaption></figcaption></figure>

## **Create Indexes**

* Navigate to the Firebase Console and then to Indexes.
* &#x20;This type of error will appear when you run the project.
* Copy and paste this link into your browser to get this dialogue type, then click Create Indexes.
* Be patient, the indexes will take some time to build.
* Create all indexes in this manner

## **Create Indexes mannually**

***Click on the Add Index button, and then enter the collection id.***

| places | status Descending rating Descending favourites Descending createdAt Descending |
| ------ | ------------------------------------------------------------------------------ |

| places | caseSearch Arrays status Ascending createdAt Descending |
| ------ | ------------------------------------------------------- |

<figure><img src="/files/v0jg347yrRDIymm4MEJz" alt=""><figcaption></figcaption></figure>

***Create all of the indexes listed below and wait for them to be built.***

<figure><img src="/files/oEpDiUyCvYMMD6lpmdzq" alt=""><figcaption></figcaption></figure>


---

# 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://infouslabs.gitbook.io/travix/firebase-configuration.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.
