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.