Coder Social home page Coder Social logo

mikaelvesavuori / triplecheck-example-cloud-functions Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 596 KB

TripleCheck broker running on Google Cloud Functions and Firestore.

License: MIT License

Shell 41.41% JavaScript 58.59%
triplecheck contract-testing consumer-driven-contracts consumer-contracts pacts

triplecheck-example-cloud-functions's Introduction

triplecheck-example-cloud-functions

TripleCheck example implementation

TripleCheck broker running on Google Cloud Functions

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:

Pre-requisites

  • 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 that src/index.ts points to whatever you called your Firestore
  • Configure init.sh and deploy.sh so they use your own values

Installation

Run npm install or yarn install in both the root and src folders.

Initialize GCP service account

First ensure the details in init.sh are correct.

Run npm run init.

Local development

Run npm start or yarn start.

Deploy

First ensure the details in deploy.sh are correct.

Run npm run deploy or yarn run deploy.

triplecheck-example-cloud-functions'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.