# Firebase Config

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

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

#### **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](http://www.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. Enter your project Name and Select Region that will create a Firebase project for you.

![](/files/-LCh_Is45k3Tusdc0f2o)

\
Add Firebase to your ionic app

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

![](/files/-LCh_R--aAgn-Ymwy0SK)

\
**Copy App credential**

![](/files/-LCh_Wt-nIRkLuAZ7gQA)

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

![](/files/-LCh_cJlDv5_PR9zZZww)

Then, click on database link on the left panel. Click on the small dropdown link on the right, and it gives 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.

![](/files/-LCh_j-ZGu9_lRSeAbUD)

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

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

To register and Login to apps, you need to activate fire base authentication Email/password.

![](/files/-LCh_p0OgQVvukue3NZH)

\
You can Setup Social auth as well, but you need to do some changes in the Apps side as well if you complete all the point successfully now you can Register to apps. Once you register, check your Database you can notice the creation of new user You need to edit user permission from User to Admin to Login into Dashboard.

![](/files/-LCh_wd5wffaRQv6c1XM)

\
If you notice any issue, 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/restaurantwebapp/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.
