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