You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -62,26 +62,24 @@ Before starting this codelab, make sure that you've installed:
62
62
63
63
The Firebase Command Line Interface (CLI) allows you to serve your web app locally and deploy your web app to Firebase Hosting.
64
64
> Note: To install the CLI, you need to install npm which typically comes with Node.js.
65
-
1. Install the CLI by running the following npm command: `sh npm -g install firebase-tools`
66
-
- if you're in git-bash, run `npm -g install firebase-tools` instead.
65
+
1. Install the CLI by running the following npm command: `npm -g install firebase-tools`
67
66
- On unix and doesn't work? You may need to run the command using sudo instead.
68
-
1. Verify that the CLI has been installed correctly by running the following command: `sh firebase --version`
69
-
-`firebase --version` on git-bash
67
+
1. Verify that the CLI has been installed correctly by running the following command: `firebase --version`
70
68
- Make sure the version of the Firebase CLI is v6.7.1 or later.
71
-
1. Authorize the Firebase CLI by running the following command: `sh firebase login`
72
-
-`firebase login --interactive` on git-bash
69
+
1. Authorize the Firebase CLI by running the following command: `firebase login`
70
+
-if the terminal you use is 'non-interactive' (eg. git-bash) you may need to append `--interactive` to the above command.
73
71
74
72
You've set up the web app template to pull your app's configuration for Firebase Hosting from your app's local directory and files. But to do this, you need to associate your app with your Firebase project.
75
-
1. Associate your app with your Firebase project by running the following command: `sh firebase use --add`
76
-
-`firebase use --add --interactive`on git-bash
73
+
1. Associate your app with your Firebase project by running the following command: `firebase use --add`
74
+
-you may need to append `--interactive`to the above command.
77
75
- When prompted, select your Project ID (from the Create Firestore Project step), then give your Firebase project an alias. An alias is useful if you have multiple environments (production, staging, etc). However, for this codelab, let's just use the alias of default.
78
76
1. Follow the remaining instructions in your command line.
79
77
80
78
1.__Run the local server__
81
79
82
80
You're ready to actually start work on our app! Let's run the app locally!
83
-
1. Run the following Firebase CLI command: `sh firebase serve --only hosting`
0 commit comments