This repo demonstrates a working, basic implementation of a TripleCheck broker running on Google Cloud Functions with a Firestore database.
Refer to the documentation on the broker for how to call the API.
Technology choices are:
- A Google Cloud Platform account
- Logged in on GCP
- Sufficient credentials to deploy and use Cloud Functions and Firestore
- Enable Firestore (Native mode) in the GCP web console, create a database called
broker-demo
– if you change it you need to make sure thatsrc/index.ts
points to whatever you called your Firestore - Configure
init.sh
anddeploy.sh
so they use your own values
Run npm install
or yarn install
in both the root and src
folders.
First ensure the details in init.sh
are correct.
Run npm run init
.
Run npm start
or yarn start
.
First ensure the details in deploy.sh
are correct.
Run npm run deploy
or yarn run deploy
.