TripleCheck broker running on Google Cloud Run with Firestore.
MIT License
This repo demonstrates a working, basic implementation of a TripleCheck broker running on Google Cloud Run with Firestore as the database.
Refer to the documentation on the broker for how to call the API.
Technology choices are:
broker-demo
– if you change it you need to make sure that src/index.ts
points to whatever you called your Firestoreinit.sh
and deploy.sh
so they use your own valuesRun 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
.
Run npm run docker:build
or npm run docker:start
respectively to build and run a container.
First ensure the details in deploy.sh
are correct.
Note: There is no need to use Docker manually to build the container when we let gcloud
handle the deployment and build process.
Run npm run deploy
or yarn run deploy
.