This repo provides template for creating Agent App Widget using Firebase services. Following things are provided:
- Agent App Widget iframe made with Create React App (at root folder).
- Firebase Cloud Functions authorization mechanism that logs in user using LC tokens.
- Hosting config for AAW.
- Create Firebase account
- Setup Firebase CLI (https://firebase.google.com/docs/cli)
- Create web project and copy configuration json to
src/App.js
file. - When testing functions locally you can download
serviceAccount.json
forfirebase-admin
and run the environmentGOOGLE_APPLICATION_CREDENTIALS='se.json' npm run serve
fromfunctions/
folder.
This solution will work only with Blaze plan on Firebase. The Spark plan limits outbound network connections. The Blaze plan still have quota limits for the Spark plan so you can attach card and use the service for free or use the template locally.