{"id":18614987,"url":"https://github.com/andrewjbateman/ionic-angular-firebase","last_synced_at":"2026-02-04T01:06:19.308Z","repository":{"id":62825568,"uuid":"425040211","full_name":"AndrewJBateman/ionic-angular-firebase","owner":"AndrewJBateman","description":":clipboard: Ionic app to perform Create Read Update \u0026 Delete (CRUD) operations on a Google Cloud Firestore database.","archived":false,"fork":false,"pushed_at":"2023-02-03T20:42:24.000Z","size":3115,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T16:52:55.864Z","etag":null,"topics":["angular","angular15","crud","crud-application","database","firebase","firebase-database","ionic","ionic6","pwa","rxjs","rxjs7"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AndrewJBateman.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}},"created_at":"2021-11-05T17:59:42.000Z","updated_at":"2023-03-24T15:19:16.000Z","dependencies_parsed_at":"2023-02-18T10:45:52.450Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/ionic-angular-firebase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/ionic-angular-firebase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/ionic-angular-firebase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-firebase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29063293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T00:26:14.114Z","status":"ssl_error","status_checked_at":"2026-02-04T00:23:06.435Z","response_time":96,"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":["angular","angular15","crud","crud-application","database","firebase","firebase-database","ionic","ionic6","pwa","rxjs","rxjs7"],"created_at":"2024-11-07T03:27:44.119Z","updated_at":"2026-02-04T01:06:19.292Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Ionic Angular Firebase\n\n* Ionic app to perform Create Read Update \u0026 Delete (CRUD) operations on a Google Cloud Firestore NoQSL document-oriented 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/ionic-angular-firebase?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/ionic-angular-firebase?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/ionic-angular-firebase?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/ionic-angular-firebase?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Ionic Angular Firebase](#zap-ionic-angular-firebase)\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 access was declined without some kind of access-limit script - see `Setup` below\n* Each database record contains simple title \u0026 text strings with auto-generated record id string\n* Typescript Record model used to specify record format\n* Home page shows records from database as a list of Ionic cards\n* Clicking on a card activates a modal with record details and cancel, update \u0026 delete buttons\n* Data service separates logic that interacts with Firebase database\n* Progressive Web App functionality added but needs to be tested\n\n## :camera: Screenshots\n\n![screenshot](./imgs/list.png)\n![screenshot](./imgs/detail.png)\n\n## :signal_strength: Technologies\n\n* [Ionic v6](https://ionicframework.com/)\n* [Ionic/angular v6](https://ionicframework.com/)\n* [Ionic icons](https://ionic.io/ionicons)\n* [Angular v15](https://angular.io/)\n* [Angular PWA](https://ionicframework.com/docs/angular/pwa) added\n* [Angular Service-worker v14](https://www.npmjs.com/package/@angular/service-worker)\n* [Firebase v9](https://firebase.google.com/)\n* [@angular/fire v7](https://www.npmjs.com/package/@angular/fire) official Angular library for Firebase.\n* [RxJS v7](https://reactivex.io/)\n* [http-server](https://www.npmjs.com/package/http-server#available-options) static server to test PWA\n\n## :floppy_disk: Setup\n\n* Run `npm i` to install dependencies\n* Create Google firebase project, create firestore database and add firebaseConfig data to `environment.ts` files, e.g.:\n  \n```typescript\nexport const environment = {\n  production: false,\n  firebase: {\n    apiKey: 'xxx..x',\n    authDomain: 'xxx..x',\n    projectId: 'xxx..x',\n    storageBucket: 'xxx..x',\n    messagingSenderId: 'xxx..x',\n    appId: 'xxx..x',\n  },\n};\n```\n\n* In Firebase click on 'Edit Rules' and change to allow access until up to a month from today, e.g.:\n\n```firestore\nservice cloud.firestore {\n  match /databases/{database}/documents {\n    match /{document=**} {\n      allow read, write: if request.time \u003c timestamp.date(2022, 12, 12);\n    }\n  }\n}\n```\n\n* Note: There are other ways to limit user access, including adding Firebase Authentication\n* `ionic serve` To start the server on _localhost://8100_\n* `ionic build --prod` to create build files in `www` folder\n* `http-server www/` to serve static build files\n\n## :computer: Code Examples\n\n* `data.service.ts` constructor fetches all records with their ids from the Firebase 'records' collection of documents.\n\n```typescript\n  constructor(private db: AngularFirestore) {\n    this.recordsCollection = db.collection\u003cRecord\u003e('records');\n    this.records = this.recordsCollection.snapshotChanges().pipe(\n      map((actions) =\u003e\n        actions.map((record) =\u003e\n          // loop through each database item and return with id\n          ({ id: record.payload.doc.id, ...record.payload.doc.data() })\n        )\n      )\n    );\n  }\n```\n\n## :cool: Features\n\n* Simple code to access \u0026 perform CRUD operations on Firestore database\n* Modal used to view record detail, instead of using routing to a record detail page\n\n## :clipboard: Status \u0026 To-do list\n\n* Status: Working\n* To-do: Deploy\n\n## :clap: Inspiration\n\n* [How to implement an ionic modal controller in details](https://edupala.com/ionic-modal-controller-exmple/) for modal styling and size\n* [Progressive Web Apps in Angular](https://ionicframework.com/docs/angular/pwa) includes deploying a PWA to Firebase\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%2Fionic-angular-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fionic-angular-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fionic-angular-firebase/lists"}