Firebase Firestore - peophins-plasmas/pawsome-app GitHub Wiki
Our backend docs--we use Firestore to host our database. Firestore is a noSQL database that is known for pairing well with React Native.
In the code, firebase is initiated in the config.js file in the firebase folder. All subsequent calls to firebase are done by importing firebase from this config file. In config file, environment variables are set by variables created in secrets.js file and imported.
Firestore's API key and other listed keys are not technically considered secure, as Firebase rules prevent misuse of these keys. However, as other API keys are often secure information, and we are considering using secure information in future features, we decided to locate the Firebase config information in the secrets.js file to ensure the secrets file was created and properly ignored by .gitignore, and also on the general principle that keeping API keys secure is usually good practice.