We need to start with security in mind. Therefore, we need to limit access to algolia to allow only reading. In orer to do this, we need to create a cloud function that updates on data changes.
To setup local testing:
https://firebase.google.com/docs/functions/local-emulator