{"id":18594730,"url":"https://github.com/ernitingarg/googlecloud-firebase-js-backend-functions","last_synced_at":"2025-05-16T12:13:16.244Z","repository":{"id":165084381,"uuid":"495067207","full_name":"ernitingarg/googlecloud-firebase-js-backend-functions","owner":"ernitingarg","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-22T13:32:56.000Z","size":10724,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T22:46:30.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ernitingarg.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}},"created_at":"2022-05-22T13:26:00.000Z","updated_at":"2023-10-21T12:28:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d8abf14-6a94-46f9-b2a9-23f0535ceb22","html_url":"https://github.com/ernitingarg/googlecloud-firebase-js-backend-functions","commit_stats":null,"previous_names":["ernitingarg/googlecloud-firebase-js-backend-functions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-firebase-js-backend-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-firebase-js-backend-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-firebase-js-backend-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-firebase-js-backend-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ernitingarg","download_url":"https://codeload.github.com/ernitingarg/googlecloud-firebase-js-backend-functions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527099,"owners_count":22085919,"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":[],"created_at":"2024-11-07T01:16:48.301Z","updated_at":"2025-05-16T12:13:11.231Z","avatar_url":"https://github.com/ernitingarg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Local enviornment setup\n\n    - Launch visual studio code as administrator\n    - Remove `node_modules` (if any)\n    - Remove `package-lock.json` (if any)\n    - npm cache clean -f\n    - Run `npm install` which will install all dependecies specified in `package.json`\n    - To debug locally, go to `package.json` =\u003e `scripts` and click on `Debug` link appear above it. (todo: more steps to be added)\n\n# Change the APY\n\n```bash\n# change the APY_PER_DAY\nvim \u003csoteria-backend-cloudfunctions-dir\u003e/index.js\n\n# deploy\ngcloud functions deploy rebase\n```\n\n# Deploy HTTP functions\n\n```bash\ngcloud auth login\ngcloud config set project \u003cproject name of the environment you want to deploy to\u003e\n\n# new function deployment\ngcloud functions deploy \u003cfunction name to be deployed\u003e --runtime nodejs10 --trigger-http\n\ngcloud functions deploy withdrawal_request --runtime=nodejs10 --trigger-http\ngcloud functions deploy withdrawal_cancel --runtime=nodejs10 --trigger-http\ngcloud functions deploy withdrawal_done --runtime=nodejs10 --trigger-http\ngcloud functions deploy conversion_request --runtime=nodejs10 --trigger-http\n\n# existing function deployment\ngcloud functions deploy \u003cfunction name to be deployed\u003e\n\ngcloud functions deploy withdrawal_request\ngcloud functions deploy withdrawal_cancel\ngcloud functions deploy withdrawal_done\ngcloud functions deploy conversion_request\n```\n\n# Deploy pub/sub functions\n\n```bash\n\n# new function deployment\ngcloud functions deploy \u003cfunction name to be deployed\u003e --runtime=nodejs10 --trigger-topic=\u003ctopic name\u003e\n\ngcloud functions deploy conversion_batch --runtime=nodejs10 --trigger-topic=convert_trigger\ngcloud functions deploy distribute_interest --runtime=nodejs10 --trigger-topic=interest_timer\ngcloud functions deploy rebase --runtime=nodejs10 --trigger-topic=rebase_timer\ngcloud functions deploy rebalance_usds --runtime=nodejs10 --trigger-topic=rebalance_usds_timer\ngcloud functions deploy update_balance_usds --runtime=nodejs10 --trigger-topic=usds_watcher_timer\ngcloud functions deploy usds_watcher --runtime=nodejs10 --trigger-topic=usds_watcher_timer\ngcloud functions deploy rebase_watcher --runtime=nodejs10 --trigger-topic=rebase_watcher\n\n# existing function deployment\ngcloud functions deploy \u003cfunction name to be deployed\u003e\n\ngcloud functions deploy conversion_batch\ngcloud functions deploy distribute_interest\ngcloud functions deploy rebase\ngcloud functions deploy rebalance_usds\ngcloud functions deploy update_balance_usds\ngcloud functions deploy usds_watcher\ngcloud functions deploy rebase_watcher\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernitingarg%2Fgooglecloud-firebase-js-backend-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernitingarg%2Fgooglecloud-firebase-js-backend-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernitingarg%2Fgooglecloud-firebase-js-backend-functions/lists"}