{"id":18615081,"url":"https://github.com/andrewjbateman/angular-akita-firebase","last_synced_at":"2026-04-18T01:03:31.464Z","repository":{"id":49996473,"uuid":"351451045","full_name":"AndrewJBateman/angular-akita-firebase","owner":"AndrewJBateman","description":":clipboard: CRUD app using Akita state management to access Firebase data","archived":false,"fork":false,"pushed_at":"2023-01-31T20:44:00.000Z","size":3806,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-27T02:45:26.106Z","etag":null,"topics":["akita","angular","angular15","datorama","firebase","firebase-database","firebase-realtime-database","firebase9","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":"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-03-25T13:43:42.000Z","updated_at":"2023-01-31T20:44:18.000Z","dependencies_parsed_at":"2023-02-16T23:00:56.920Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-akita-firebase","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/AndrewJBateman%2Fangular-akita-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-akita-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-akita-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-akita-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-akita-firebase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406495,"owners_count":19633025,"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":["akita","angular","angular15","datorama","firebase","firebase-database","firebase-realtime-database","firebase9","rxjs","rxjs7"],"created_at":"2024-11-07T03:28:04.718Z","updated_at":"2025-11-03T03:30:34.255Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular Akita Firebase\n\n* Angular app using [Akita state management](https://datorama.github.io/akita/) and Create, Read, Update \u0026 Delete (CRUD) functions to interface with a Firebase database. Tutorial code from Aldo Caamal with some updates - see [:clap: Inspiration](#clap-inspiration) below\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-akita-firebase?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-akita-firebase?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-akita-firebase?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-akita-firebase?style=plastic)\n\n*** Note: to open web links in a new window use: _ctrl+click on link_**\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Akita Firebase](#zap-angular-akita-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  * [:wrench: Testing](#wrench-testing)\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* Akita used to create the posts.store.ts - an [Akita Entity Store](https://datorama.github.io/akita/docs/entities/entity-store) of single objects that is the single source of truth\n* Akita is not being maintained and they themselves recommend using an equivalent reactive store 'https://ngneat.github.io/elf/'\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/posts.png)\n\n## :signal_strength: Technologies\n\n* [Angular framework v15](https://angular.io/)\n* [Google Firebase v9](https://firebase.google.com)\n* [@ngneat operator until-destroy v9](https://github.com/ngneat/until-destroy/#use-with-ivy) replaces [ngx-take-until-destroy](https://www.npmjs.com/package/ngx-take-until-destroy) to unsubscribe from observables when component destroyed, instead of using Angular ngDestroy lifecycle\n* [Akita State Management for JS v7](https://datorama.github.io/akita/)\n* [Akita Ng Entity Service v7](https://datorama.github.io/akita/docs/angular/entity-service/)\n* [akita-ng-fire v6](https://www.npmjs.com/package/akita-ng-fire) to simplify the connection between Akita and Firebase.\n* [Typescript Partials](https://www.typescriptlang.org/docs/handbook/utility-types.html) used to construct types with all properties set to optional.\n\n## :floppy_disk: Setup\n\n* Run `npm i` to install dependencies.\n* Add to `environments/environment.ts`: Firebase realtime database access credentials\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* Run `npm run build` for a production build with css purging.\n* Run `http-server` to view build on an apple/android phone or simulator (pick 2nd http address supplied)\n* The build artifacts will be stored in the `dist/angular-akita-firebase` directory.\n\n## :wrench: Testing\n\n* Run `ng test` to run Jasmine unit tests via [Karma](https://karma-runner.github.io).\n* Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## :computer: Code Examples\n\n* `posts.service.ts` function to load post to Firebase database while showing percentage progress\n\n```typescript\n  async add(post: Post, files: any) {\n    await this.uploadImage(files);\n\n    let newpost = {\n      title: post['title'],\n      content: post['content'],\n      cover: this.downloadURL,\n      fileref: this.filepath,\n    };\n\n    let p = await this.firestore.collection('posts').add(newpost);\n    this.setPercentage(null);\n  }\n```\n\n## :cool: Features\n\n* Uses Akita state management, built on top of RxJS data streams to create an Observable Data Store model.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working. Add Firebase authentication to access database - bypassed by setting access to 'true' in Firebase rules\n* To-Do:  Nothing\n\n## :clap: Inspiration\n\n* [Aldo Caamal: Youtube: Simple Posts App using Angular 9, Akita State Management \u0026 Firebase #1 ( Setup )](https://www.youtube.com/watch?v=aMbhIp2F4j0)\n* [10 Reasons Why You Should Start Using Akita as Your State Management Solution](https://engineering.datorama.com/10-reasons-why-you-should-start-using-akita-as-your-state-management-solution-66b63d033fec)\n* [Free svg site](https://freesvg.org/) for free svgs\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-akita-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-akita-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-akita-firebase/lists"}