# Firebase Config

### **Firebase** <a href="#firebase" id="firebase"></a>

This app uses Firebase as a backend to read and save data for Menu, Order. In this section, you will find all the steps required for the dashboard connection with your Firebase App.

#### **Create a Firebase App** <a href="#create-a-firebase-app" id="create-a-firebase-app"></a>

First, you should create a free Firebase account and create a new project there. You can visit firebase.google.com and signup if you don't have an account with Google earlier, and if you have an account, you can create a firebase app project. You can enter the project Name and Select Region, and it will create a Firebase project for you.

![](/files/-LCiHlhFqKvYteqMB6BQ)

\
Add Firebase to your ionic/Dashboard app

Once the project gets Created, Navigate into Overview menu on the left side then you can see **Add Firebase to your web app** as displayed in the below screenshot

![](/files/-LCiI-4MR29_lo-6pF_N)

**Copy App credential**

![](/files/-LCiI684Lewt1A2OkE9v)

Once you copy the Config credential can replace the current config details on **firebase.config.ts**

![](/files/-LCldMjyIL0ZBxOxCB_c)

\
Then, click on the database link on the left panel. Click on small drop-down link on the right and it gives will you an option to export/import project. You need to click on "Import JSON" and upload the dummy JSON we provided. You can find dummy JSON inside Firebase project folder > src > assets. You can select and import this file.

If JSON file has already imported during Ionic app setup, then don't need to follow this setup copy your firebase app credential and add your dashboard config file

![](/files/-LCldTM7obTZ4McMK75a)

\
And Boom your Firebase project almost ready and you can see all the menu Items within apps from your Firebase account.

#### Firebase Authentication <a href="#firebase-authentication" id="firebase-authentication"></a>

To Register  and Login to apps you need to activate firebase auth Email/password .

![](/files/-LCldaUccVXKnfRau8XW)

\
You can Setup Social auth as well, but you need to do some changes in the App side as well. You need to register or create an account from ionic mobile apps. Once you register, check your Database there one new user has created. You need to edit user permission from User to **Admin** to Log on to Dashboard.

![](/files/-LCldvvNWvyf-ov6-N7O)

If you have any issues you can contact our support team anytime and we will come back and resolve you ASAP.


---

# 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://docs.ionicfirebaseapp.com/restaurantbackend/firebase/firebase-config.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.
