Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup a Firebase demo project

The Firebase documentation mentions that the local emulator supports Real and Demo projects. A demo project is defined as:

A demo project has no Firebase console configuration and no live resources. Demo project IDs have the demo- prefix.

The above mentions a demo- prefix but I can't find any examples of how that works. Is it possible to setup a demo project as specified in the above documentation without requiring a Firebase console project or any live resources?

like image 348
Christian Avatar asked Jun 01 '21 01:06

Christian


People also ask

What is Firebase demo project?

The Firebase demo project is a standard Firebase project with fully functioning Analytics, Crash Reporting, Test Lab, Notifications, Google Tag Manager and Remote Config features. Any Google user can access it. It's a great way to look at real app data and explore the Firebase feature set.

How many project I can create in Firebase for free?

Firebase restricts the total number of Firebase Apps within a Firebase project to 30. After this number, performance starts to degrade (especially for Google Analytics) and eventually, at a higher number of apps, some product functionality stops working.

How to create a project in Firebase console?

Step 1: The first create a google account if you don't have one already, and open Firebase console., Step 2: Click on "Get started" button to start. Step 3: Click on "Add project" button to start. Step 4: Choose your Google account and click on "Create project" button to start. Step 6: Click on "Continue" button to start.

How to register an app on Firebase?

To register app, you would first need to create a Firebase project. Follow the steps below to learn how to create a project on your Firebase account: Open Firebase console on your browser. Click on Get Started and login with your Google account. Select Create a Project. Then enter your Project Name.

What is the firebase demo project?

The Firebase demo project is a standard Firebase project with fully functioning Analytics, Crash Reporting, Test Lab, Notifications, Google Tag Manager and Remote Config features. Any Google user can access it.

What are the firebase options?

The configuration includes "Firebase options", which are parameters required by Firebase and Google services to communicate with Firebase server APIs and to associate client data with the Firebase project and Firebase app. Here are the required, minimum "Firebase options":


Video Answer


1 Answers

You can start the emulators with a demo project by using the --project flag:

$ firebase emulators:start --project demo-test --only auth

Just make sure that the project ID start with the demo- prefix. This line will produce the following output:

i  emulators: Starting emulators: auth
i  emulators: Detected demo project ID "demo-test", emulated services will use a demo configuration and attempts to access non-emulated services for this project will fail.
like image 59
Tobias Avatar answered Oct 18 '22 23:10

Tobias