{"id":28907708,"url":"https://github.com/iamageo/cloud-functions-sample","last_synced_at":"2026-04-05T22:36:43.575Z","repository":{"id":300093612,"uuid":"1005183773","full_name":"iamageo/cloud-functions-sample","owner":"iamageo","description":"Um boilerplate em Node.js/Express para enviar push notifications com Firebase Cloud Functions","archived":false,"fork":false,"pushed_at":"2025-06-19T20:13:27.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T22:36:40.798Z","etag":null,"topics":["android","cloud-functions","dart","express","fcm","firebase","flutter","ios","node","notifications","pubsub"],"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/iamageo.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,"zenodo":null}},"created_at":"2025-06-19T20:10:11.000Z","updated_at":"2025-06-19T20:15:03.000Z","dependencies_parsed_at":"2025-06-19T21:34:10.196Z","dependency_job_id":null,"html_url":"https://github.com/iamageo/cloud-functions-sample","commit_stats":null,"previous_names":["iamageo/cloud-functions-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamageo/cloud-functions-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2Fcloud-functions-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2Fcloud-functions-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2Fcloud-functions-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2Fcloud-functions-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamageo","download_url":"https://codeload.github.com/iamageo/cloud-functions-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2Fcloud-functions-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31452899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["android","cloud-functions","dart","express","fcm","firebase","flutter","ios","node","notifications","pubsub"],"created_at":"2025-06-21T16:05:28.822Z","updated_at":"2026-04-05T22:36:42.831Z","avatar_url":"https://github.com/iamageo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase Cloud Functions – Envio de Notificações\n\nUm boilerplate em Node.js/Express para enviar push notifications com Firebase Cloud Functions, incluindo:\n\n- **Endpoint HTTP** para disparo sob demanda (`/sendNotification`)\n- **Função agendada** (Pub/Sub) para envio diário automatizado\n- Exemplo de **integração com Firestore** para personalização de mensagens  \n- Guia de **teste** via curl, Postman e Firebase Emulator\n\n## Descrição\n\nEste projeto demonstra como usar o Firebase Cloud Functions e o Firebase Cloud Messaging (FCM) para:\n\n1. **Enviar notificações personalizadas** a um token de dispositivo via endpoint REST.  \n2. **Agendar envios diários** de mensagens usando Pub/Sub.  \n3. **Buscar dados no Firestore** (nome de usuário, preferências, etc.) para construir payloads dinâmicos.  \n\nPerfeito como base para apps Flutter, Web ou iOS/Android que precisem de um sistema de notificações desacoplado e escalável.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamageo%2Fcloud-functions-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamageo%2Fcloud-functions-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamageo%2Fcloud-functions-sample/lists"}