Below are the important steps. For full documentation please see the official Firebase docs.
-
Ensure you have the Firebase CLI -
npm install -g firebase-tools
-
Store your config locally inside yours functions folder -
cd functions firebase functions:config:get > .runtimeconfig.json
-
Store your credentials locally
-
Follow these steps - https://firebase.google.com/docs/functions/local-emulator#set_up_admin_credentials_optional
-
Ensure they are saved to the
/functions
folder
-
-
Uncomment this line in
SignIn.tsx
// Uncomment to run firebase functions locally // firebase.functions().useEmulator("localhost", 5001);
You can build and publish in several ways. Expo has some good documentation on this. There are essentially two ways to do it - using Expo build servers or using your own computer or CI.
I have been using the Expo servers because I was never able to get the Turtle CLI to work properly for me. The only downside to using the Expo servers is that they're slower and you're at the mercy of their uptime.