Firebaseコンソールにアクセス: https://console.firebase.google.com/
firebaseのCLIインストールされている前提ですが、コマンドラインでも確認できます。
firebase projects:list
プロジェクトディレクトリへの移動: コマンドプロンプトまたはターミナルで、プロジェクトのルートディレクトリに移動します。
? Which Firebase emulators do you want to set up? Press Space to select emulators, then Enter to confirm your choices. Authentication Emulator, Hosting Emulator ? Which port do you want to use for the auth emulator? 9099 i Port for hosting already configured: 5000 i Emulator UI already enabled with port: (automatic) ? Would you like to download the emulators now? Yes
Hosting Emulatorは、静的ファイルのサーバです。しかしGo言語で作ったサーバを実行することはできないので、かわりに、Cloud Functions Emulatorを使用します。
Cloud Functions for Firebase をいれたいので 再度インストールしなおし
firebase init emulators
じゃまにならないなら、さいしょからいろいろ、入れておけばいいんじゃないかという考えはまちがっていますかね?
firebase init functions
firebase init emulators
Firebase ローカル エミュレータ スイートは、開発者がFirebaseアプリをローカルで効率的に開発・テストするためのツールセットです。以下にポイントを簡潔にまとめます:
本番環境での使用は非推奨(パフォーマンスやセキュリティよりも精度重視の設計)
Android, iOS, Web, Node.js Admin SDK(一部機能制限あり)
このツールを使用することで、開発者はFirebaseアプリケーションをより安全かつ効率的に開発・テストすることができます。
https://firebase.google.com/docs/emulator-suite?hl=ja
https://firebase.google.com/docs/cli?hl=ja
https://qiita.com/mml/items/33633f50db0218c97a82
https://qiita.com/ak2ie/items/a50ea4e3da37f904bd1a
https://firebase.google.com/codelabs/firebase-emulator?hl=ja#0
https://zenn.dev/shima999ba/articles/b83c4e26f2be18
https://zenn.dev/cbcloud_blog/articles/6256f1a3d05a18
https://zenn.dev/meijin/articles/marp-firebase-emulator