Add an .env file to the FirebaseFunctions functions (see Notion)
Uncomment the callDeepDaoAPI function in firebaseFunctions/src/index.ts in order to be able to invoke it later in the emulator (make sure to comment out again after deployment, so it is not pushed to production)
Deploy the firebase function: npm run firebase-deploy-deepdao-function:default
DeepDAO mocks: https://www.figma.com/file/hTLvqCEzki3WoG5uJbtynw/Prime-Deals?node-id=11548%3A169598
DeepDAO specs: https://www.notion.so/primedao/Prime-Deals-V1-1-Feature-set-A-85599522f25f4b75b895c466f5ad9fd4#ed78e0ecc58c44df9ba4b09678bf9b24
Note:
To test with Firebase Emulator-
Add an
.env
file to theFirebaseFunctions
functions (see Notion)Uncomment the
callDeepDaoAPI
function infirebaseFunctions/src/index.ts
in order to be able to invoke it later in the emulator (make sure to comment out again after deployment, so it is not pushed to production)Deploy the firebase function:
npm run firebase-deploy-deepdao-function:default
When done, invoke it from the browser: http://localhost:5001/prime-deals-6ace4/us-central1/callDeepDaoAPI This will create a new
deep-dao
collection in the emulator with filled with data. If running using Firebase cloud- the collection is already live.run
npm ci
to install the new packagecl-webcomp-poc
.What was done
Firebase
deep-dao
collection in Firestore.dApp