Coder Social home page Coder Social logo

mikaelvesavuori / triplecheck-example-cloudflare-workers Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.1 MB

TripleCheck broker running on Cloudflare Workers and KV.

License: MIT License

Shell 22.52% TypeScript 49.48% JavaScript 28.00%
triplecheck contract-testing consumer-driven-contracts consumer-contracts pacts

triplecheck-example-cloudflare-workers's Introduction

triplecheck-example-cloudflare-workers

TripleCheck example implementation

TripleCheck broker running on Cloudflare Workers and KV

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:

Pre-requisites

  • 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 file wrangler dot toml – the actual file is gitignored so you don't commit any secret values
  • Set zone_id and account_id in wrangler.toml, these are easiest found in the web console
  • Configure the custom block in serverless.yml so it uses your own values

Installation

Run npm install or yarn install.

Local development

Run npm start or yarn start.

Deploy

Run npm run deploy or yarn run deploy.

Teardown (remove stack)

There is currently no way to remove a function with the CLI tool – you will have to do this manually in the web console.

triplecheck-example-cloudflare-workers's People

Contributors

dependabot[bot] avatar mikaelvesavuori avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.