Skip to content

πŸ“‹ Angular app with Angular material components to display data stored using firebase v9

Notifications You must be signed in to change notification settings

AndrewJBateman/angular-material-firebase

Repository files navigation

⚑ Angular Material Firebase

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

πŸ“„ Table of contents

πŸ“š General info

πŸ“· Screenshots

Example screenshot Example screenshot

πŸ“Ά Technologies

πŸ’Ύ Setup

  • Install dependencies using npm i
  • Add firebase credentials to environments files
  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
  • Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.

πŸ’» Code Examples

  • Function to fetch the projects collection from a Google Firestore NoSQL database and order by date
getProjects = (): Observable<Project[] | DocumentChangeAction<unknown>[]> => {
  return this.firebase
    .collection("projects", ref => ref.orderBy("createdDate"))
    .snapshotChanges();
};

πŸ†’ Features

  • Code to perform CRUD operations on a Firestore NoSQL database is quite simple

πŸ“‹ Status & To-Do List

  • Status: Working
  • To-Do: Add form types, correct form so fields are not red after complete form submitted and form is reset. Deploy, change project add/edit form to a dialog, add transloco, SSR, PWA. Add form types in createdit.component.ts

πŸ‘ Inspiration

πŸ“ License

  • This project is licensed under the terms of the MIT license.

βœ‰οΈ Contact

  • Repo created by ABateman, email: gomezbateman@yahoo.com