{"id":15691753,"url":"https://github.com/ecklf/firebase-functions-boilerplate","last_synced_at":"2025-07-22T03:05:28.612Z","repository":{"id":42965673,"uuid":"174359334","full_name":"ecklf/firebase-functions-boilerplate","owner":"ecklf","description":"Template for having split up cloud functions with jest testing","archived":false,"fork":false,"pushed_at":"2023-01-05T16:21:48.000Z","size":1968,"stargazers_count":8,"open_issues_count":28,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T22:47:22.427Z","etag":null,"topics":["cloud","firebase","functions","jest","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ecklf.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":null,"support":null}},"created_at":"2019-03-07T14:24:30.000Z","updated_at":"2024-01-10T17:05:37.000Z","dependencies_parsed_at":"2023-02-04T07:16:11.008Z","dependency_job_id":null,"html_url":"https://github.com/ecklf/firebase-functions-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ecklf/firebase-functions-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Ffirebase-functions-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Ffirebase-functions-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Ffirebase-functions-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Ffirebase-functions-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecklf","download_url":"https://codeload.github.com/ecklf/firebase-functions-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Ffirebase-functions-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266417089,"owners_count":23925301,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","firebase","functions","jest","typescript"],"created_at":"2024-10-03T18:24:16.919Z","updated_at":"2025-07-22T03:05:28.590Z","avatar_url":"https://github.com/ecklf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase Cloud Functions Boilerplate\n\nTemplate for having split up cloud functions (_triggers_/_endpoints_) with included `jest` testing.\n\n## Usage\n\nRequires **firebase-tools**:\n\n```sh\n$ npm i -g firebase-tools\n```\n\nInstall all dependencies (node version should match package.json engines):\n\n```sh\n$ cd functions\n$ nvm use # will read .nvmrc (default: v8)\n$ yarn\n```\n\nAdd your firebase project\n\n```sh\n$ firebase use --add\n```\n\nAdd your `service-account.json` to the `functions` folder:\n\n```diff\n{\n+    \"type\": \"service_account\",\n+    \"project_id\": \"\",\n+    \"private_key_id\": \"\",\n+    \"private_key\": \"\",\n+    \"client_email\": \"\",\n+    \"client_id\": \"\",\n+    \"auth_uri\": \"\",\n+    \"token_uri\": \"\",\n+    \"auth_provider_x509_cert_url\": \"\",\n+    \"client_x509_cert_url\": \"\",\n}\n```\n\nFill in your API details in `config/*.json`\n\nDevelopment: `firebase serve` with hot-reloading\n\n```sh\n$ yarn dev\n```\n\nTesting: jest\n\n```sh\n$ yarn test\n```\n\n## Config\n\n### Node.js v10\n\nCurrently in beta. If you want to try it out you will need to enable it in your `package.json`\n\n```diff\n   \"engines\": {\n-     \"node\": \"8\"\n+     \"node\": \"10\"\n   },\n```\n\nAlso modify your `.nvmrc` if you use nvm / fnm / fish-nvm\n\n```diff\n-  v8\n+  v10\n```\n\n## Useful links\n\n- [Develop Apps Script using TypeScript](https://developers.google.com/apps-script/guides/typescript)\n- [Firebase CLI Reference](https://firebase.google.com/docs/cli/)\n- [Unit testing of Cloud Functions](https://firebase.google.com/docs/functions/unit-testing)\n- [How to Test Firebase Cloud Functions With Jest](https://angularfirebase.com/lessons/testing-cloud-functions-in-firebase/)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecklf%2Ffirebase-functions-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecklf%2Ffirebase-functions-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecklf%2Ffirebase-functions-boilerplate/lists"}