Skip to content

Latest commit

 

History

History
90 lines (64 loc) · 1.44 KB

LOCAL_DEVELOPMENT.md

File metadata and controls

90 lines (64 loc) · 1.44 KB

Local development

Functions

cd functions
yarn build:watch

Then eiter start Firebase Emulator fully local:

yarn start

...or against an existing remote Firebase project:

GOOGLE_APPLICATION_CREDENTIALS=path/to/credential yarn start:remote --project <firebase-project>

the credentials are available on bitwarden as Cupcake <env> - Firebase Service Account

Client

iOS

cd client
yarn ios

Android

cd client
yarn android

Metro bundler

cd client
yarn start

...or if you need support for running on device:

cd client
yarn start:device

Content

Content needs to be re-built when it's changed.

cd content
yarn build:watch

Testing

Client

cd client
yarn test

Functions

cd functions
yarn test

Firebase dynamic links

  1. Make your client setup has google-services.json and GoogleService-Info.plist config files pointing to a real Firebase project.
  2. Make sure DEEP_LINK_ variables are properly setup for both functions/.env and client/.env
  3. Start functions with a real firebase project:
    yarn start:remote --project <firebase-project>
    
  4. Open links in iOS and Android simulators from the terminal:
    npx uri-scheme open "https://dev.app.cupcake.29k.org/jksd23kjh2kjhk" --ios --android