{"id":18614995,"url":"https://github.com/andrewjbateman/ionic-angular-authuser","last_synced_at":"2025-05-07T03:43:50.149Z","repository":{"id":52602850,"uuid":"306084580","full_name":"AndrewJBateman/ionic-angular-authUser","owner":"AndrewJBateman","description":":clipboard: Ionic-Angular used to authenticate users so they can access a simple chat app. Take care if updating.","archived":false,"fork":false,"pushed_at":"2023-02-17T19:48:42.000Z","size":1748,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T03:43:43.926Z","etag":null,"topics":["angular","angular15","authentication","firebase","firebase9","ionic","ionic6"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-21T16:30:23.000Z","updated_at":"2023-11-09T10:32:54.000Z","dependencies_parsed_at":"2024-11-07T03:31:12.838Z","dependency_job_id":"80154a58-6325-4fa6-b6fc-a48ab356d321","html_url":"https://github.com/AndrewJBateman/ionic-angular-authUser","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%2Fionic-angular-authUser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-authUser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-authUser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-authUser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/ionic-angular-authUser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810272,"owners_count":21807759,"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":["angular","angular15","authentication","firebase","firebase9","ionic","ionic6"],"created_at":"2024-11-07T03:27:47.060Z","updated_at":"2025-05-07T03:43:50.097Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","readme":"# :zap: Ionic Angular Authentication\n\n* Ionic app to authenticate users so they can access and post messages to a chat board.\n* Another great tutorial from [Simon Grimm 'Building an Ionic Firebase Chat with Authentication'](https://www.youtube.com/watch?v=xNleEVG9_yA\u0026t=94s). Updated to latest Angular and Firebase (compat) versions.\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-authUser?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/ionic-angular-authUser?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/ionic-angular-authUser?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/ionic-angular-authUser?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Ionic Angular Authentication](#zap-ionic-angular-authentication)\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*\tFirebase Firestore Authentication used to create sign in and log in functions\n* Firebase Cloud Firestore stores users and messages in Collections.\n* [Angular FormBuilder](https://angular.io/api/forms/FormBuilder#description) used to reduce the amount of boilerplate needed to build a form\n* rxjs map and switchmap operators used\n\n## :camera: Screenshots\n\n![screenshot](./img/test.png)\n\n## :signal_strength: Technologies\n\n* [Ionic v6](https://ionicframework.com/)\n* [Ionic/angular v6](https://ionicframework.com/)\n* [Angular v15](https://angular.io/)\n* [Firebase v9](https://firebase.google.com/) backend database and authentication APIs\n\n## :floppy_disk: Setup\n\n* Create a Firebase project and add email authentication\n* Add Firebase config object to environment variables\n* `npm` i to install dependencies\n* `ionic serve` to start the server on _localhost://8100\n\n## :computer: Code Examples\n\n* extract from `chat.page.html` by [Simon Grimm](https://devdactic.com/) showing ternery expressions to change chat offset and scss class depending on user\n\n```html\n\t\u003cion-grid\u003e\n    \u003cion-row *ngFor=\"let message of messages | async\"\u003e\n      \u003cion-col size=\"9\" class=\"message\"\n        [offset]=\"message.myMsg ? 3 : 0\"\n        [ngClass]=\"{ 'my-message': message.myMsg, 'other-message': !message.myMsg }\"\u003e\n        \u003cb\u003e{{ message.fromName }}\u003c/b\u003e\u003cbr\u003e\n        \u003cspan\u003e{{ message.msg }}\n        \u003c/span\u003e\n        \u003cdiv class=\"time ion-text-right\"\u003e\u003cbr\u003e{{ message.createdAt?.toMillis().toString() | date:'short' }}\u003c/div\u003e\n      \u003c/ion-col\u003e\n    \u003c/ion-row\u003e\n  \u003c/ion-grid\u003e\n```\n\n## :cool: Features\n\n* Use of ternery expressions to change chat box color and horizontal offset depending on which user chat item is shown\n\n## :clipboard: Status \u0026 To-do list\n\n* Status: Complete and working. Problem with dev. console persisting user login id which stops chat from showing user details correctly\n* To-do: Fix errors. Find out how to show more than one user email in chat with email username - problem is likely due to storing of user data even after logging out and logging in as a different user.\n\n## :clap: Inspiration\n\n* [Simon Grimm Youtube: 'Building an Ionic Firebase Chat with Authentication'](https://www.youtube.com/watch?v=xNleEVG9_yA\u0026t=94s)\n* [Simon Grimm Article: 'Building an Ionic Firebase Chat with Authentication'](https://devdactic.com/ionic-firebase-chat/)\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fionic-angular-authuser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fionic-angular-authuser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fionic-angular-authuser/lists"}