Skip to content

Latest commit

 

History

History
 
 

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

api

One function to rule them all, one docker image to bind them

Setup

You must have set up the gcloud cli following the functions/README.

Test

In root directory ./dev.sh [dev|prod] will run the api with hot reload, along with all the other backend and web code.

Deploy

Run ./deploy.sh [dev|prod] in this directory

Secrets management

Secrets are strings that shouldn't be checked into Git (eg API keys, passwords).

Add or remove keys using Google Secret Manager, which provides them as environment variables to functions that require them.

Dev secrets manager Prod secrets manager

Secondly, please update the list of secret keys at backend/shared/src/secrets.ts. Only these keys are provided to functions, scripts, and the api.