{"id":21905852,"url":"https://github.com/jcmdsbr/nest-cloud-function","last_synced_at":"2026-01-29T03:08:35.331Z","repository":{"id":117404455,"uuid":"372617688","full_name":"jcmdsbr/nest-cloud-function","owner":"jcmdsbr","description":"Node Cloud Functions using Nest standalone application is a wrapper around the Nest IoC container","archived":false,"fork":false,"pushed_at":"2021-06-23T22:00:05.000Z","size":201,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T15:31:23.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jcmdsbr.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":"2021-05-31T20:08:41.000Z","updated_at":"2024-08-26T22:09:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"148b4c0b-a495-4b4e-94d1-eac85fd22f98","html_url":"https://github.com/jcmdsbr/nest-cloud-function","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcmdsbr/nest-cloud-function","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fnest-cloud-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fnest-cloud-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fnest-cloud-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fnest-cloud-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcmdsbr","download_url":"https://codeload.github.com/jcmdsbr/nest-cloud-function/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fnest-cloud-function/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28861702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-11-28T16:38:36.256Z","updated_at":"2026-01-29T03:08:35.317Z","avatar_url":"https://github.com/jcmdsbr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [GCP]  Cloud functions using nodejs + nestjs :sunglasses:\n\n- Node Cloud Functions using Nest standalone application is a wrapper around the Nest IoC container\n\n## Standalone applications :star:\n\nThere are several ways of mounting a Nest application. You can create a web app, a microservice or just a bare Nest standalone application (without any network listeners). The Nest standalone application is a wrapper around the Nest IoC container, which holds all instantiated classes. \nWe can obtain a reference to any existing instance from within any imported module directly using the standalone application object. \nThus, you can take advantage of the Nest framework anywhere, including, for example, scripted CRON jobs. You can even build a CLI on top of it.\n\n## Getting started :exclamation:\n\n### Before :heavy_check_mark:\n\n- Install firebase-tools\n\n```sh\nnpm i -g firebase-tools\n```\n\n## Init firebase function strucure :heavy_check_mark:\n\n```sh\nfirebase init functions\nfirebase init emulators\n```\n\n### Add Nest to the Functions Source :heavy_check_mark:\n\n\nIn functions folder\n\nTo create a Nest standalone application and Add , use the following construction:\n\n```sh\nnpm i --save @nestjs/core @nestjs/common rxjs reflect-metadata\n```\n\nIf HTTP function install\n\n```sh\nnpm i --save express @nestjs/platform-express\n```\n\n- Create a nest-cli.json file\n\n```json\n{\n    \"language\": \"ts\",\n    \"collection\": \"@nestjs/schematics\",\n    \"sourceRoot\": \"src\"\n}\n\n```\n\nAnd add new configuration from tsconfig.json\n\n```json\n{\n  \"compilerOptions\": {\n    \"module\": \"commonjs\",\n    \"noImplicitReturns\": true,\n    \"noUnusedLocals\": true,\n    \"outDir\": \"lib\",\n    \"sourceMap\": true,\n    \"strict\": false,\n    \"target\": \"es2017\",\n    \"emitDecoratorMetadata\": true,\n    \"experimentalDecorators\": true,\n    \"declaration\": true,\n    \"removeComments\": true,\n    \"baseUrl\": \"./\",\n    \"incremental\": true,\n    \"esModuleInterop\": true\n  },\n  \"compileOnSave\": true,\n  \"include\": [\n    \"src\"\n  ]\n}\n```\n\n## Deploy :heavy_check_mark:\n\n```sh\nfirebase login\nfirebase deploy --only functions --project [YOUR PROJECT NAME] --region [YOUR PROJECT REGION]\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fnest-cloud-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcmdsbr%2Fnest-cloud-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fnest-cloud-function/lists"}