Skip to content

gcloud quickstart wayat frontend

devonfw-core edited this page Dec 27, 2022 · 4 revisions

Setting up the Wayat Frontend in a new project

The scope of this section is to initialize a project with the code of Wayat Frontend in Flutter configured to be used with other Gcloud and Firebase services.

This script will automatically add the code (from a template) of the Wayat Frontend, replace the necessary variables, commit the new files to your repo and upload the secret files to the Secret Manager.

Prerequisites

  • Have a Google Cloud project already setup and Google Cloud CLI installed and configured. If it is not the case, please go back to corresponding guide.

  • Have an empty repository with GitFlow branch strategy

  • Have all necessary Firebase and Gcloud services active

  • Have a keystore file

  • Have a Map Static API Secret

Initializing Wayat Frontend using provided script

The script located at /scripts/quickstart/gcloud/quickstart-wayat-backend.sh allows you to:

  1. Add all the backend code (from a template) of Wayat

  2. Replace the necessary variables

  3. Commit the new files to your repository

  4. Upload the secret files to the Secret Manager.

Usage

quickstart-wayat-frontend.sh \
    -w <workspace for the project> \
    -d <directory of the backend repository> \
    -p <project ID> \
    --keystore <keystore file> \
    --backend-url <backend url> \
    --frontend-url <frontend url> \
    --maps-static-secret <SECRET>

Flags

-w, --workspace                [Required] Workspace of the project containing Firebase keys.
-d, --directory                [Required] Directory for the repository of the backend.
-p, --project                  [Required] Project shortname (ID)
--keystore                     [Required] Keystore file path.
--backend-url                  [Required] Backend service url.
--frontend-url                 [Required] Frontend service url.
--maps-static-secret           [Required] Maps static API secret.

Example

./scripts/quickstart/{provider_path}/quickstart-wayat-backend.sh {example_required_flags} 

Guides per provider

Clone this wiki locally