https://github.com/dogsghost/angular-firebase-auth-template
start an angular project with firebase email authentication already setup
https://github.com/dogsghost/angular-firebase-auth-template
angular authentication firebase
Last synced: about 2 months ago
JSON representation
start an angular project with firebase email authentication already setup
- Host: GitHub
- URL: https://github.com/dogsghost/angular-firebase-auth-template
- Owner: dogsGhost
- Created: 2020-10-26T19:55:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T04:08:09.000Z (over 5 years ago)
- Last Synced: 2025-02-04T17:51:20.156Z (over 1 year ago)
- Topics: angular, authentication, firebase
- Language: TypeScript
- Homepage:
- Size: 180 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular Project Template with Firebase Email Auth
Base for starting an Angular project that uses email/password for user authentication.
**NOTE**: email verification is not included here.
If Angular CLI is not already installed, install it:
`npm install -g @angular/cli`
Install required packages:
`npm install`
In `src/environments/firebase.config.ts`, replace the placeholder values with the correct values from [your firebase project](https://console.firebase.google.com/).
In `src/app/home/home.component.html`, find the comments within the template tag for where to replace the contents with whatever component you want to display on the homepage when a user is logged in.
In `src/app/app-routing.module.ts`, if you need to add a route that requires a user be logged in, add `...canActivate(redirectUnauthorizedToHome),` to the route object and if a user is not logged in, they will be redirected to the homepage.