https://github.com/andrewjbateman/angular-firebase-dashboard
:clipboard: Angular app to access Firestore database using latest Firebase login code
https://github.com/andrewjbateman/angular-firebase-dashboard
angular angular14 css css3 firebase firebase-auth firebase-authentication firebase-database firebase9 html5 rxjs rxjs7 tutorial-code
Last synced: 4 months ago
JSON representation
:clipboard: Angular app to access Firestore database using latest Firebase login code
- Host: GitHub
- URL: https://github.com/andrewjbateman/angular-firebase-dashboard
- Owner: AndrewJBateman
- Created: 2021-08-05T16:41:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T20:07:15.000Z (almost 3 years ago)
- Last Synced: 2025-05-17T01:34:34.744Z (5 months ago)
- Topics: angular, angular14, css, css3, firebase, firebase-auth, firebase-authentication, firebase-database, firebase9, html5, rxjs, rxjs7, tutorial-code
- Language: TypeScript
- Homepage:
- Size: 1020 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular Firebase Dashboard
* Angular app with Firebase Authentication that displays a dashboard with login, logout, forgot-password etc. buttons & routing
* User details stored in a Cloud Firestore database
* Tutorial code from [D-I-Ry](https://www.youtube.com/channel/UCMHvK9tare9Y9O152C9wm3Q) with some modifications - see [:clap: Inspiration](#clap-inspiration) below
* **Note:** to open web links in a new window use: _ctrl+click on link_


## :page_facing_up: Table of contents
* [Angular Firebase Dashboard](#angular-firebase-dashboard)
* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal_strength: Technologies](#signal_strength-technologies)
* [:floppy_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples - by D-I-Ry with some modifications](#computer-code-examples---by-d-i-ry-with-some-modifications)
* [:cool: Features](#cool-features)
* [:clipboard: Status & To-Do List](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)## :books: General info
* [Firebase authentication](https://firebase.google.com/docs/auth) used to identify user
* This is not a practical auth. dashboard - too many buttons displayed. I had to modify the code not to display login and logout button together, for example.## :camera: Screenshots

## :signal_strength: Technologies
* [Angular v14](https://angular.io/)
* [rxjs v7](https://rxjs.dev/) Reactive Extensions Library for JavaScript
* [firebase v9](https://firebase.google.com/) backend
* [@angular/fire v7](https://www.npmjs.com/package/@angular/fire) Angular library for Firebase.## :floppy_disk: Setup
* Create project in Firebase console then add email authentication.
* `npm i` to install dependencies
* `npm prune` to remove unused npm modules
* `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
* `ng update` to update Angular## :computer: Code Examples - by [D-I-Ry](https://www.youtube.com/channel/UCMHvK9tare9Y9O152C9wm3Q) with some modifications
* login function that signs in user with details from html form
```typescript
loginUser(email: string, password: string): Promise {
return this.afAuth
.signInWithEmailAndPassword(email, password)
.then(() => {
console.log('Auth Service: loginUser: success');
this.router.navigate(['/dashboard']);
})
.catch((error) => {
console.log('Auth Service: login error code', error.code, error);
if (error.code) return { isValid: false, message: error.message };
return { isValid: true, message: 'no errors :-)' };
});
}
```## :cool: Features
* 'Verify email' actually works and sends an email to the user with a link to click on. Refresh required to change boolean state on screen. Firebase backend code does make things easier.
## :clipboard: Status & To-Do List
* Status: Working
* To-Do: Nothing## :clap: Inspiration
* [D-I-Ry: Angular & Firebase dashboard in 22 minutes](https://www.youtube.com/watch?v=HRaINOrhXbw&t=243s)
## :file_folder: License
* N/A
## :envelope: Contact
* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com