The Firebase Local Emulator Suite can be used to run the system on your machine:
- Navigate into the functions directory
- Install the firebase CLI tools:
npm install -g firebase-tools
- Fetch the environmental variables with
firebase functions:config:get | ac .runtimeconfig.json
(you might have to delete the content of the file before) - Compile the source code:
npm run build
- 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) - 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).