{"id":24499975,"url":"https://github.com/luillyfe/cloud-firebase","last_synced_at":"2025-07-19T11:35:15.091Z","repository":{"id":205862996,"uuid":"714800075","full_name":"luillyfe/cloud-firebase","owner":"luillyfe","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-11T22:35:48.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T07:22:09.856Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luillyfe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-05T20:57:15.000Z","updated_at":"2024-01-14T12:53:12.000Z","dependencies_parsed_at":"2023-11-07T03:05:47.204Z","dependency_job_id":"674f3ff5-86d1-4703-8cdf-dead6a4eb359","html_url":"https://github.com/luillyfe/cloud-firebase","commit_stats":null,"previous_names":["luillyfe/cloud-firebase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luillyfe/cloud-firebase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fcloud-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fcloud-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fcloud-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fcloud-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luillyfe","download_url":"https://codeload.github.com/luillyfe/cloud-firebase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fcloud-firebase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265926967,"owners_count":23850886,"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":"2025-01-21T22:16:28.778Z","updated_at":"2025-07-19T11:35:15.051Z","avatar_url":"https://github.com/luillyfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Import JSON\n\nRecently I was struggling to add data from a JSON file to a firestore collection. Although, there are other approaches like using a third party service like\nFirefoo or creating a firebase application. I ended up building a Firebase function since it appeared to me the more suitable solution for a single-purpose domain.\n\n## Configuration\n\n#### firebase.json\n\n```json\n{\n  \"firestore\": {\n    \"rules\": \"firestore.rules\",\n    \"indexes\": \"firestore.indexes.json\"\n  },\n  \"functions\": [\n    {\n      \"source\": \"functions\",\n      \"codebase\": \"default\",\n      \"ignore\": [\n        \"node_modules\",\n        \".git\",\n        \"firebase-debug.log\",\n        \"firebase-debug.*.log\"\n      ],\n      \"predeploy\": [\"npm --prefix \\\"$RESOURCE_DIR\\\" run lint\"]\n    }\n  ],\n  \"storage\": {\n    \"rules\": \"storage.rules\"\n  }\n}\n```\n\n#### .firebaserc\n\n```json\n{\n  \"projects\": {\n    \"default\": \"your-project-id\"\n  }\n}\n```\n\n#### Deploy to firebase\n\n```sh\nfirebase deploy --only functions\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluillyfe%2Fcloud-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluillyfe%2Fcloud-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluillyfe%2Fcloud-firebase/lists"}