{"id":16584881,"url":"https://github.com/mikaelvesavuori/triplecheck-example-cloud-functions","last_synced_at":"2025-03-06T05:16:30.079Z","repository":{"id":38731671,"uuid":"367691404","full_name":"mikaelvesavuori/triplecheck-example-cloud-functions","owner":"mikaelvesavuori","description":"TripleCheck broker running on Google Cloud Functions and Firestore.","archived":false,"fork":false,"pushed_at":"2022-12-14T04:37:15.000Z","size":596,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T16:22:24.830Z","etag":null,"topics":["consumer-contracts","consumer-driven-contracts","contract-testing","pacts","triplecheck"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikaelvesavuori.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2021-05-15T17:24:59.000Z","updated_at":"2022-04-25T08:27:27.000Z","dependencies_parsed_at":"2022-08-20T03:50:51.290Z","dependency_job_id":null,"html_url":"https://github.com/mikaelvesavuori/triplecheck-example-cloud-functions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Ftriplecheck-example-cloud-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Ftriplecheck-example-cloud-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Ftriplecheck-example-cloud-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Ftriplecheck-example-cloud-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikaelvesavuori","download_url":"https://codeload.github.com/mikaelvesavuori/triplecheck-example-cloud-functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242150809,"owners_count":20080007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consumer-contracts","consumer-driven-contracts","contract-testing","pacts","triplecheck"],"created_at":"2024-10-11T22:46:06.899Z","updated_at":"2025-03-06T05:16:30.050Z","avatar_url":"https://github.com/mikaelvesavuori.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# triplecheck-example-cloud-functions\n\n![TripleCheck example implementation](readme/triplecheck-example.png)\n\n## TripleCheck broker running on Google Cloud Functions\n\nThis repo demonstrates a working, basic implementation of a [TripleCheck broker](https://github.com/mikaelvesavuori/triplecheck-broker) running on Google Cloud Functions with a Firestore database.\n\nRefer to the documentation on the [broker](https://github.com/mikaelvesavuori/triplecheck-broker) for how to call the API.\n\nTechnology choices are:\n\n- [Node.js](https://nodejs.org/en/)\n- [Functions Framework](https://cloud.google.com/functions/docs/functions-framework)\n\n## Pre-requisites\n\n- A Google Cloud Platform account\n- Logged in on GCP\n- Sufficient credentials to deploy and use Cloud Functions and Firestore\n- 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\n- Configure `init.sh` and `deploy.sh` so they use your own values\n\n## Installation\n\nRun `npm install` or `yarn install` in both the root and `src` folders.\n\n## Initialize GCP service account\n\n**First ensure the details in `init.sh` are correct.**\n\nRun `npm run init`.\n\n## Local development\n\nRun `npm start` or `yarn start`.\n\n## Deploy\n\n**First ensure the details in `deploy.sh` are correct.**\n\nRun `npm run deploy` or `yarn run deploy`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaelvesavuori%2Ftriplecheck-example-cloud-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikaelvesavuori%2Ftriplecheck-example-cloud-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaelvesavuori%2Ftriplecheck-example-cloud-functions/lists"}