# Firebase Configuration

## 1. Create firebase project

1. Go To: <https://console.firebase.google.com>
2. Click Add Project

## 2. Database configuration

1. Select Database from side menu

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1onCUr5G30VZEPINO%2F-Ln1qqxj3oTewJpZC3ET%2Fimage.png?alt=media\&token=310c3bb7-8342-414a-9250-e185f47f4fd2)

2\. Select Real Time Database

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1onCUr5G30VZEPINO%2F-Ln1r-bFaZnYXytJrvBa%2Fimage.png?alt=media\&token=f76dc77d-bd73-4f7c-a938-13268c6f97b9)

3\. Select Rules from tabs and create rules (read, write)=true for permission

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1onCUr5G30VZEPINO%2F-Ln1ryy3TzH0JmMxVoIK%2Fimage.png?alt=media\&token=46168c8f-dec1-4e23-825a-5d046dadd985)

## 3. Authentication

1. Select Authentication from side menu

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1onCUr5G30VZEPINO%2F-Ln1sSW0rOwwGwhttw8p%2Fimage.png?alt=media\&token=924a8f10-63c8-49cd-b992-3abfc541a887)

2\. Select Sign in method from tabs

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1onCUr5G30VZEPINO%2F-Ln1soGgPl8zc0st8Odm%2Fimage.png?alt=media\&token=2da34db3-995c-4f61-bbca-3f3076729f0c)

3\. Select Email/Password provider and **enable**

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1onCUr5G30VZEPINO%2F-Ln1t3Nhu029e_5YfyCL%2Fimage.png?alt=media\&token=8b818207-9590-4ba6-833b-0e03d4adb30d)

## 4. Integration to application

1. Go To **Porject Settings** from Firebase Console
2. Select **General** from tabs and copy ***firebaseConfig***

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1vVXz7zjYjt2i85zR%2F-Ln1xLOvoAkt2sx9UglL%2FCapture.PNG?alt=media\&token=a32921c7-1c46-49f0-9b10-d0ee83fff2c6)

3\. Paste **fireaseConfig** to Admin and Mobile app project's into enviroment.ts and enviroment.prod.ts file.

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1vVXz7zjYjt2i85zR%2F-Ln1xpv8nCo4oBVHS-MJ%2Fimage.png?alt=media\&token=c249e823-c6ec-48c6-9fb8-98e82bb548c5)

![](https://256132677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmoLvgY3rxtqDyZ2YZ1%2F-Ln1vVXz7zjYjt2i85zR%2F-Ln1yBf5j757Zke9V811%2FCapture.PNG?alt=media\&token=f4c394ad-7cd4-4a0e-95b2-87b28bb19f53)
