Installing For local development

  1. Install gcloud CLI
  2. If you don’t have java (or see the error Error: Process java -version has exited with code 1. Please make sure Java is installed and on your system PATH.):
    1. $ brew install java
    2. $ sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
  3. $ gcloud auth login to authenticate the CLI tools to Google Cloud
  4. $ gcloud config set project <project-id> to choose the project ($ gcloud projects list to see options)
  5. $ mkdir firestore_export to create a folder to store the exported database.
  6. $ yarn db:update-local-from-remote to pull the remote db from Firestore to local

Developing locally