This repo demonstrates a working, basic implementation of a TripleCheck broker running on Cloudflare Workers with the database being Cloudflare KV.
Refer to the documentation on the broker for how to call the API.
Technology choices are:
- Node.js
- TypeScript
- Cloudflare Wrangler CLI for easing deployment and packaging
- Webpack for bundling
- A Cloudflare account
- Wrangler CLI installed
- Run the
init.sh
script - Set the bindings presented from the above script in
wrangler.toml
, then rename the filewrangler dot toml
– the actual file is gitignored so you don't commit any secret values - Set
zone_id
andaccount_id
inwrangler.toml
, these are easiest found in the web console - Configure the
custom
block inserverless.yml
so it uses your own values
Run npm install
or yarn install
.
Run npm start
or yarn start
.
Run npm run deploy
or yarn run deploy
.
There is currently no way to remove a function with the CLI tool – you will have to do this manually in the web console.