How to add an app to a Firebase project?
If you've navigated to the project overview page by clicking the settings icon next to "project settings" in the top left, then proceed.
In the area titled, "Your Apps" towards the bottom of the screen, select a web app as the type of app. It's the option directly to the right of Android. ❤️
Give your app a nickname, try to keep this the same as your app id, and the url name if possible.
Check the box to choose hosting for your app, but make sure the selection matches your intended url. The dropdown seems easy to miss at times.
Click "register app", note that the SDK is not required at this point.
Again, click next, but this time copy the CLI command to your clip board for convenience, move to the next step, then click "Continue to Console." to finish.
#* wut | Make sure to have the CLI installed for the next section by pasting to the terminal or by using the command below.
$ npm install -g firebase-tools
️#* wut | Update your CLI liberally.
For any CLI, when they're new or just out of beta, the updates are more frequent and have more of an impact compared to later updates across the tool's lifetime. There will be a time, when you're pulling your hair out, but forgot to update the CLI. I promise, maybe probably.
Firebase projects are basically Google Cloud Platform (GCP) projects. A project can have many apps, but for any individual app, try to keep it isolated to one project. In other words, try to maintain a set of related apps together in one system to get along with any super system.
For example, you have an Android app, two web apps, and a iOS app. Try to develop these under one project ID.
#* wut | The project name you chose at the start is usually your project throughout GCP.
For programmers, please remember best practices expecially regarding naming conventions. You'll find that a consistant naming pattern will save you time and energy when reasoning your way through other surfaces of your system within Firebase and GCP.
#* wut | Remember, this is a much larger universe with way more stuff racing through orbit. I'll share some advice from a friend, "You can nuke it out of orbit but I don't suggest relying on that."