Phexpedition requires Google Cloud to run. Initially setting up your project and your GitHub Actions CI/CD pipeline in described in the seperate setup document.
Since we require Google Cloud resources, you still need to have a cloud project set up.
See previous chapter for details. Once you have at least a single test project running,
make sure to declare these environment variables. You might want to use a .env
file
for this:
AUTH_REDIRECT_URI=http://localhost:8080
AUTH_CLIENT_ID=<client ID from APIs and services -> Credentials -> OAuth 2.0 Client IDs>
AUTH_CLIENT_SECRET=<client secret from APIs and services -> Credentials -> OAuth 2.0 Client IDs>
GOOGLE_APPLICATION_CREDENTIALS=</path/to/IAM/JSON/key>
Explaination:
AUTH_REDIRECT_URI
: This app's base URL that Google Authentication will invoke after successful authentication. You need to enable test users in APIs and services -> OAuth consent screen and need to enable "Authorised JavaScript origins" and "Authorised redirect URIs" in APIs and services -> Credentials -> OAuth 2.0 Client IDs by adding "http://localhost:8080" eachAUTH_CLIENT_ID
: client ID you have configured in APIs and services -> Credentials -> OAuth 2.0 Client IDsAUTH_CLIENT_SECRET
: client secret to be found in the configured client secret APIs and services -> Credentials -> OAuth 2.0 Client IDsGOOGLE_APPLICATION_CREDENTIALS
: fully qualified path pointing to the JSON key of the app's IAM service account