Skip to content

mattcopeland/angular-firebase-kanban

Repository files navigation

angular-firebase-kanban

Tutorial about how to get started with Angular and Firebase to build a Kanban board app

Step 1 - Setup a new project

  • Create an Angular application using the CLI
    • ng new angular-firebase-kanban
  • Create a Firebase project
  • Add Angular Material
    • ng add @angular/material
  • Add Angular Fire
    • ng add @angular/fire
  • Deploy to firebase hosting

Step 2 - Authentication

  • 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

Step 3 - Allow users to create new and view available projects

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published