Firebase Integration Into User App

1. Editing environment files in project

Open the project in your code editor and navigate as follows:-

Src -> Environments -> “environments.ts”

The code to be replaced is shown and highlighted below. Replace the highlighted code below with the code you copied to text editor from firebase in previous step.

2. Creating database in Firebase

The image shown below is the same screen we saw after competing all the steps of New Firebase Project Setup section in firebase console. Click on “Continue to console” button.

You should see the following screen where your app will be added to firebase.

Click on “database” shown under the "Develop" section.It should show you the following screen and click on “Create database”

Select “Start in test mode” and click “Next” as shown below.

Click on “Done”. It should show you the following screen.

3. Enable Sign In Provider

Let us go to Firebase console to enable "sign in". Click on “Authentication” shown under the "Develop" section. It should show you the following screen.

Click on "Sign in method". It should show you the following screen.

Select the "Email/Password" at the top of this list of "Provider" (which is disabled currently). It should show you the following screen. "Enable" the first option and make sure that second one is "diasbled" and click “Save”.

Last updated