{"id":18615057,"url":"https://github.com/andrewjbateman/angular-firebase-functions","last_synced_at":"2026-04-06T02:34:09.034Z","repository":{"id":49909314,"uuid":"337815025","full_name":"AndrewJBateman/angular-firebase-functions","owner":"AndrewJBateman","description":":clipboard: Angular with Firebase Functions and express to access Cloud Firestore realtime database","archived":false,"fork":false,"pushed_at":"2023-01-25T16:41:52.000Z","size":2523,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T09:06:06.339Z","etag":null,"topics":["angular","angular15","express4","expressjs","firebase","firebase-database","firebase-functions","firebase9","realtime-database"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AndrewJBateman.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}},"created_at":"2021-02-10T18:24:35.000Z","updated_at":"2023-03-26T16:26:19.000Z","dependencies_parsed_at":"2023-02-14T09:31:34.550Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-firebase-functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/angular-firebase-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-firebase-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-firebase-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-firebase-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-firebase-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-firebase-functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-firebase-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31457722,"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":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["angular","angular15","express4","expressjs","firebase","firebase-database","firebase-functions","firebase9","realtime-database"],"created_at":"2024-11-07T03:27:58.177Z","updated_at":"2026-04-06T02:34:09.019Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular Firebase Functions\n\n* Angular app using Firebase tools\n* Firebase Functions used with express server to access a realtime database\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/angular-firebase-functions?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-firebase-functions?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-firebase-functions?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-firebase-functions?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Firebase Functions](#zap-angular-firebase-functions)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Firebase project realtime database key-value pair created in Firebase Console\n* Project service account created via Firebase Project Settings then `Create Service Account`/Node.js (default option)then `Generate new private key` that adds a json file to the user's PC. The path to this access key file is referenced in the express server `index.ts` file\n* This is just a very simple example to demonstrate how a Firebase database function works\n\n## :camera: Screenshots\n\n![Screenshot](./img/screen.png)\n\n## :signal_strength: Technologies\n\n* [Angular v15](https://angular.io/)\n* [Firebase v9](https://firebase.google.com) Cloud storage and authentication.\n* [Firebase Tools v11](https://www.npmjs.com/package/firebase-tools) CLI used to manage a Firebase project\n* [AngularFire v7](https://www.npmjs.com/package/@angular/fire) Angular library for Firebase\n* [Express v4](https://www.npmjs.com/package/express) Node.js framework\n\n## :floppy_disk: Setup\n\n* Install dependencies using `npm i`\n* Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n* In a 2nd terminal, cd to `/functions` and run `npm i` then `npm run serve` to install backend dependencies, create build file and start up Functions emulator\n* navigate to `localhost../api/databaseKey` the realtime database value will be displayed\n* Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n* Run `ng update` to update Angular\n\n## :computer: Code Examples\n\n* functions `index.ts` function to retrieve value from Firebase realtime database for key supplied\n\n```typescript\n// get value corresponding to key supplied\napp.get(\"/database_ref\", (request, response) =\u003e {\n  const db = admin.database();\n  const ref = db.ref(\"database_ref\");\n  ref.once(\"value\").then((value) =\u003e {\n    response.send(value);\n  })\n      .catch((err) =\u003e console.error(err));\n});\n```\n\n## :cool: Features\n\n* Firebase Cloud Functions can be used is a serverless framework that allows backend code to be run automatically in response to https requests and Firebase features.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Add other functions and database key-values\n\n## :clap: Inspiration\n\n* [Demos with Angular: Building Custom APIs on top of the Firebase Realtime DB](https://www.youtube.com/watch?v=mWAwxbeGU_E\u0026t=186s)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-firebase-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-firebase-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-firebase-functions/lists"}