Skip to content

charitydiscount/firebase

Repository files navigation

CharityDiscount Firebase Functions, Hosting and DB Config

Running locally

The Firebase Local Emulator Suite can be used to run the system on your machine:

  1. Navigate into the functions directory
  2. Install the firebase CLI tools: npm install -g firebase-tools
  3. Fetch the environmental variables with firebase functions:config:get | ac .runtimeconfig.json (you might have to delete the content of the file before)
  4. Compile the source code: npm run build
  5. Start the suite: firebase emulators:start --import=<path_to_initial_data_or_data_exported_from_production> (you can add --export-on-exit=<path_to_export_data> to store the data - the emulator does not persist any data)
  6. Create some users in auth (doesn't support data export/import) by making a request to the populateAuthUsers https function (see terminal for complete URL).

About

Firebase functions, permissions and others

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published