Firebase Integration
This page describes the steps to integrate a new Firebase project for the Grocery Dashboard App.
Last updated
This page describes the steps to integrate a new Firebase project for the Grocery Dashboard App.
Last updated
It has the following steps:
1.1 Open the project in your code editor and navigate as follows:-
Src -> Environments -> “environments.ts”
1.2 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.
1.3. Now open “environments.prod.ts” file from “Environments” folder.
1.4. 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. ( Same step as above )
2.1 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.
2.2 You should see the following screen where your app will be added to firebase.
2.3 Click on Database shown under the "Develop" section.It should show you the following screen and click on “Create database”
2.4 Select “Start in test mode” and click “Next” as shown below.
2.5. Click on “Done”. It should show you the following screen.
3.1 Click on “Authentication” shown under the "Develop" section. It should show you the following screen.
3.2 Click on "Sign in method". It should show you the following screen.
3.3 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”.
4.1 Click on Users shown under the Authentication section. It should show you the following screen where no user is present currently.
4.2 Click on Add user. It should show you the following screen.
4.3 Add Email and Password of the user you want to add and click on Add user as shown below.
4.4 The user you added should appear in Users section, with the email id you provided as the Identifier field. It is shown in the following screen.
Now we have successfully created a new user for our Grocery App. Let us go back to the browser where we can test our Dashboard app for Login.
Go to Grocery Dashboard Testing section to see how to do it.