{"id":31287614,"url":"https://github.com/mikebionic/fcm-go-demo","last_synced_at":"2026-05-15T13:31:15.251Z","repository":{"id":315661092,"uuid":"1060407262","full_name":"mikebionic/fcm-go-demo","owner":"mikebionic","description":"A small but practical example to get started with Firebase Cloud Messaging + Go | Google I/O","archived":false,"fork":false,"pushed_at":"2025-09-19T21:51:35.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-20T00:15:38.525Z","etag":null,"topics":["demo","example","fcm","firebase","golang","notifications","teaching"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/mikebionic.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-19T21:29:20.000Z","updated_at":"2025-09-19T21:51:38.000Z","dependencies_parsed_at":"2025-09-20T00:15:54.420Z","dependency_job_id":"e637277d-1e06-4593-9f88-90b6d6b37dec","html_url":"https://github.com/mikebionic/fcm-go-demo","commit_stats":null,"previous_names":["mikebionic/fcm-go-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mikebionic/fcm-go-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2Ffcm-go-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2Ffcm-go-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2Ffcm-go-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2Ffcm-go-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikebionic","download_url":"https://codeload.github.com/mikebionic/fcm-go-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2Ffcm-go-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["demo","example","fcm","firebase","golang","notifications","teaching"],"created_at":"2025-09-24T11:02:01.423Z","updated_at":"2026-05-15T13:31:15.199Z","avatar_url":"https://github.com/mikebionic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FCM Go Demo\n\nThis project is a simple demonstration of how to integrate and use **Firebase Cloud Messaging (FCM)** with a Go backend and a web client.  \nIt was originally prepared as an example for **Google I/O Ashgabat** by Google Developer Group.\n\n\u003e See the slides from [presentation](https://docs.google.com/presentation/d/1jSfSuZX1c6LY6yHQa0_5e2mQhEn3M1xaKuyKUYnFFeQ/edit?slide=id.g38137ad3bcf_0_344#slide=id.g38137ad3bcf_0_344)\n\nThe backend (written in Go) exposes an API endpoint to send push notifications to devices using FCM.  \nThe frontend (HTML + JS) registers for notifications, obtains the FCM device token, and listens for messages.\n\n## Why use this project?\n- Learn how to set up FCM with a real backend.\n- Understand how to generate and use device tokens.\n- Explore how notifications can be sent from Go to web clients.\n- Use it as a starting point for adding push notifications in your own apps.\n\n## Run locally\n1. Place your Firebase **serviceAccountKey.json** inside the `secrets/` folder.  \n2. Start the Go server: `go run main.go`\n3. Open [http://localhost:8000](http://localhost:8000) in your browser.\n4. Allow notifications and test sending messages.\n\n## Contribute\n\nIf you like this project:\n\n* ⭐ Star this repository\n* 🍴 Fork it and use it in your next app\n* Pull requests and improvements are always welcome\n\n---\n\nA small but practical example to get started with **Firebase Cloud Messaging + Go** 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebionic%2Ffcm-go-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikebionic%2Ffcm-go-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebionic%2Ffcm-go-demo/lists"}