Tutorial about how to get started with Angular and Firebase to build a Kanban board app
- Create an Angular application using the CLI
ng new angular-firebase-kanban
- Create a Firebase project
- https://console.firebase.google.com/
- Turn on Google Authentication
- Create a firestore database
- Start in test mode Add firebase hosting
- Add Angular Material
ng add @angular/material
- Add Angular Fire
ng add @angular/fire
- Deploy to firebase hosting
- Setup Firebase config and AngularFire module
- Add AngularFirestore and AngularFireAuth modules
- Create a shared Material module
ng g m shared/material
- Include the
MatButtonModule
- Create a Authentication module under features
ng g m features/auth --routing
- Create a login component under the Auth feature
ng g c features/auth/login
- Make the login component the default route for the app
- Create an Auth Service
ng g s features/auth/services/auth
- Add sign-in and sign out functionality
- Store the user object for use
- Create a projects module and projects-routing module
ng g m features/projects --routing
- Create a view-projects component to view a list of projects
ng g c features/projects/components/view-projects
- Create an add-project component to add a new project
ng g c features/projects/components/add-project
- Add lazy loaded route to the view projects component -- Add an AuthGuard to this component from AngularFireAuthGuard module