An open API service indexing awesome lists of open source software.

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

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.