-
Notifications
You must be signed in to change notification settings - Fork 26
firebase setup firebase
By the end of this guide, an environment on Firebase will be created on an existing Google Cloud project in an automated way using a script.
-
Have a Google Cloud project already setup and GCloud CLI installed and configured. If it is not the case, please go back to corresponding guide.
-
If this is your first time using Firebase you need to manually accept the Firebase terms and conditions. To do so, please access the console and create your first project, marking both checkboxes regarding Firebase conditions (Google Analytics is not necessary). After that you can delete it, and proceed to use the script.
The script located at /scripts/accounts/gcloud/setup-firebase.sh
allows you to:
-
Create a Firebase project with an ANDROID, IOS and WEB aplication.
-
Enable and setup Firestore.
-
Enable Geocoding API key.
-
Enable Maps SDK for ANDROID.
-
Enable Maps SDK for IOS.
-
Enable Map Static API.
setup-firebase.sh \
-n <project name> \
-o <local directory> \
[-r <firebase region>] \
[--enable-maps] \
[--setup-ios] \
[--setup-android] \
[--setup-web] \
-n [Required] Name of the project.
-o, --output [Required] Output path to store credentials.
-r [Required] Region where to create Firestore Database.
--enable-maps Enables APIs related to Maps services.
--setup-ios Enables IOS APIs and creates IOS App.
--setup-android Enables Android APIs and creates Android App.
--setup-web Enables Web APIs and creates Web App.
Tip
|
This is non-exhaustive list. Make your own combination of flags if all of the following use cases does not fit your needs. |
./setup-firebase.sh -n -o ./output -r europe-west2 --enable-maps
This documentation is licensed under the Creative Commons License (Attribution-NoDerivatives 4.0 International).