{"id":18202456,"url":"https://github.com/pcpratheesh/golang-firebase-example","last_synced_at":"2026-05-08T13:33:01.690Z","repository":{"id":154439064,"uuid":"403916398","full_name":"pcpratheesh/golang-firebase-example","owner":"pcpratheesh","description":"Sample code snippet for basic operation with firebase realtime db","archived":false,"fork":false,"pushed_at":"2021-09-13T03:22:46.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T20:18:16.853Z","etag":null,"topics":["code","database","firebase","firebase-database","golang","real-time","sample","snippets"],"latest_commit_sha":null,"homepage":"","language":"Go","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/pcpratheesh.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-09-07T09:19:42.000Z","updated_at":"2024-12-21T09:16:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"37f1448d-ed83-45db-9b7b-441960498e8b","html_url":"https://github.com/pcpratheesh/golang-firebase-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fgolang-firebase-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fgolang-firebase-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fgolang-firebase-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fgolang-firebase-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcpratheesh","download_url":"https://codeload.github.com/pcpratheesh/golang-firebase-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247705591,"owners_count":20982465,"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":["code","database","firebase","firebase-database","golang","real-time","sample","snippets"],"created_at":"2024-11-03T10:04:03.058Z","updated_at":"2026-05-08T13:32:56.662Z","avatar_url":"https://github.com/pcpratheesh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golang-firebase-example\n\nThis is a sample respository to learn how we can integrate firebase realtime db operations\n\n## before creating database\n- Goto [firebase](https://console.firebase.google.com/)\n- Create new project\n- Project Overview -\u003e Settings Icon -\u003e Projct Settings -\u003e Service Accounts -\u003e Click on generate new private key\n- copy the private key file into project folder and renamed as **serviceAccountKey.json**\n\n## Steps to configure Firebase realtime db\n- Realtime database -\u003e create database -\u003e choose location -\u003e select mode (locked mode / test mode)\n- It will redirect to another window and you can see the database url there.\n\n    ```\n    Choose a region for the database. Depending on your choice of region, the database namespace will be of the form \u003cdatabaseName\u003e.firebaseio.com or \u003cdatabaseName\u003e.\u003cregion\u003e.firebasedatabase.app\n    ```\n\n\n## run\n```go\ngr main.go --db-url \u003cfirebase_realtime_db_url\u003e --add\ngr main.go --db-url \u003cfirebase_realtime_db_url\u003e --update\ngr main.go --db-url \u003cfirebase_realtime_db_url\u003e --delete\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcpratheesh%2Fgolang-firebase-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcpratheesh%2Fgolang-firebase-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcpratheesh%2Fgolang-firebase-example/lists"}