{"id":27353684,"url":"https://github.com/aamijar/team2059-scouting-firebase","last_synced_at":"2026-05-09T14:09:38.884Z","repository":{"id":233368208,"uuid":"304801947","full_name":"aamijar/team2059-scouting-firebase","owner":"aamijar","description":"Cloud functions that update firestore database with the latest FIRST® Robotics Competition events, teams, and avatars","archived":false,"fork":false,"pushed_at":"2023-03-12T22:26:48.000Z","size":81,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T21:07:15.921Z","etag":null,"topics":["firebase","frc","frc-scouting","robotics-competition"],"latest_commit_sha":null,"homepage":"","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/aamijar.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}},"created_at":"2020-10-17T05:09:16.000Z","updated_at":"2023-03-04T18:15:56.000Z","dependencies_parsed_at":"2024-04-16T00:00:26.961Z","dependency_job_id":"2d9303e4-0f23-4d7b-ba82-b20182c92722","html_url":"https://github.com/aamijar/team2059-scouting-firebase","commit_stats":null,"previous_names":["aamijar/team2059-scouting-firebase"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamijar%2Fteam2059-scouting-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamijar%2Fteam2059-scouting-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamijar%2Fteam2059-scouting-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamijar%2Fteam2059-scouting-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aamijar","download_url":"https://codeload.github.com/aamijar/team2059-scouting-firebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631677,"owners_count":21136562,"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":["firebase","frc","frc-scouting","robotics-competition"],"created_at":"2025-04-12T21:07:18.149Z","updated_at":"2026-05-09T14:09:38.840Z","avatar_url":"https://github.com/aamijar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# team2059-scouting-firebase\n\u003cimg alt=\"Node.js 10\" src=\"https://img.shields.io/badge/Node.js-10-green?logo=Node.js\u0026logoColor=green\"\u003e \u003cimg alt=\"Node.js 10\" src=\"https://img.shields.io/badge/cloud%20functions-3.6.1-%23f29c07?logo=firebase\"\u003e\n\n\nCloud functions that update firestore database with the latest FIRST® Robotics Competition events, teams, and avatars\n\nUpdating the database can take ~20 minutes because of the amount of requests (with a 3 second delay) that must be made to the FIRST® events API.\n\nTherefore it is best to split up the task into several functions since each has a timeout of 9 minutes in google cloud. \nThe first function is triggered by an http endpoint and the latter three are chained using pubsub messages.\n\nIt is highly advised to test functions using an emulator:\n\n```\n$ firebase emulators:start\n```\n\nIn order to deploy to production environment:\n```\n$ firebase deploy\n```\n\nIn order to update the database manually you can visit the url below. You must be authenticated using gcloud sdk otherwise you will recieve a forbidden error.\n```\n$ curl https://us-central1-team2059-scouting.cloudfunctions.net/updateFirestore -H \n\"Authorization: bearer $(gcloud auth print-identity-token)\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faamijar%2Fteam2059-scouting-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faamijar%2Fteam2059-scouting-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faamijar%2Fteam2059-scouting-firebase/lists"}