dogsGhost / angular-firebase-auth-template

start an angular project with firebase email authentication already setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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.

About

start an angular project with firebase email authentication already setup


Languages

Language:TypeScript 78.1%Language:HTML 12.1%Language:JavaScript 9.2%Language:SCSS 0.6%