{"id":15433944,"url":"https://github.com/abhinaba-ghosh/google-cloud-build-postman","last_synced_at":"2025-03-28T06:12:22.119Z","repository":{"id":103997102,"uuid":"304931196","full_name":"abhinaba-ghosh/google-cloud-build-postman","owner":"abhinaba-ghosh","description":":cloud: Continuous deployment and testing of Google cloud functions with Postman and Cloud Build","archived":false,"fork":false,"pushed_at":"2021-01-01T18:10:17.000Z","size":3064,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T08:34:32.898Z","etag":null,"topics":["cloud-functions","google-cloud-build","google-cloud-platform","newman","postman","postman-collection"],"latest_commit_sha":null,"homepage":"https://www.postman.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhinaba-ghosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-17T17:21:38.000Z","updated_at":"2021-06-18T14:58:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"eba101e2-75ff-4434-b2e3-97e7665407a2","html_url":"https://github.com/abhinaba-ghosh/google-cloud-build-postman","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"f2ccb66207900b7279607e2d69577c061eb671cd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fgoogle-cloud-build-postman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fgoogle-cloud-build-postman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fgoogle-cloud-build-postman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fgoogle-cloud-build-postman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhinaba-ghosh","download_url":"https://codeload.github.com/abhinaba-ghosh/google-cloud-build-postman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978277,"owners_count":20703678,"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":["cloud-functions","google-cloud-build","google-cloud-platform","newman","postman","postman-collection"],"created_at":"2024-10-01T18:36:13.815Z","updated_at":"2025-03-28T06:12:22.094Z","avatar_url":"https://github.com/abhinaba-ghosh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./docs/logo.png\" width=\"700px\" height=\"300px\"\u003e\n\n### google-cloud-build-postman\n\nCloud Functions is an event-driven serverless compute platform. Cloud Functions allows you to write your code without worrying about provisioning resources or scaling to handle changing requirements. This repository provide you a glimpse of\n\n-   How to deploy your backend as [Cloud Functions in GCP](https://cloud.google.com/functions/)\n-   Testing the cloud functions with [Postman](https://www.postman.com/) and [Newman](https://github.com/postmanlabs/newman)\n-   Automate the deploying process with [Cloud Build](https://cloud.google.com/cloud-build)\n-   Slack integration to get notification after each build\n\n#### Steps to Deploy and Test\n\n-   Signup to GCP, Its nearly free for a year!\n-   Install the `gcloud` command line tool as per your operating system\n-   Clone this repository\n-   Install the dependencies\n\n```bash\nnpm i\n```\n\n-   Run the backend locally to check everything works fine\n\n```bash\nnpm start\n```\n\n-   if all runs well, navigate to the browser and open `http://localhost:8081/api/portfolio`. It should show the json response.\n\n-   Run unit test with command\n\n```\nnpm run test:unit\n```\n\n-   Stop the local service and deploy it to the GCP\n\n```\ngcloud beta functions deploy myWebsiteBackend --trigger-http --runtime nodejs10\n```\n\n-   Once the function got deployed you will receive the `endpoint` printed in the `console. Grab the endpoint\n\n-   Push this as a new repository in your own Github/any-other source code management space.\n\n-   Create a trigger with installing [github Could Build App](https://github.com/marketplace/google-cloud-build) for your repository.\n\n-   Now go to the [Cloud Build](https://console.cloud.google.com/cloud-build) console and navigate to `Trigger` section. Create a new trigger of your choice. Just keep in mind to provide a `user substitute` value with your grabbed url in earlier function deployment stage\n\n![trigger](./docs/trigger.png)\n\n-   Now, trigger the run or push a commit to your repo. You can see the magic happening in the newly triggered build.\n\n![log](./docs/build-log.png)\n\n#### More\n\nFind more in this [ Medium Article](https://medium.com/@abhinabaghosh.1994/how-postman-and-google-cloud-build-helps-you-ship-cloud-functions-faster-cbfd4c424bac)\n\n#### Suggestions/PR\n\nAny suggestions/PR top rectify flows is welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinaba-ghosh%2Fgoogle-cloud-build-postman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhinaba-ghosh%2Fgoogle-cloud-build-postman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinaba-ghosh%2Fgoogle-cloud-build-postman/lists"}