Skip to content

A Client Management PWA for commercial real estate agents built with angular and firebase

Notifications You must be signed in to change notification settings

Nick-tsoukas/client-management

Repository files navigation

Client Management

This app was built in effort to learn angular development. It is still in development, but wanted to explore how to host the app in production.

I'm currently not working on it but i noticed people were logging in, so I'm giving everyone admin privileges,

I'll come back to this project at a later date and will say I had a great time learning how to work with angular!

One thing that I struggled with was wrapping my head around the rxjs lib. It was frustrating at first, but I came to see the power of it.subscribe()!

Don't do anything I wouldn't do;

link to app
https://client-management-111c5.firebaseapp.com/

Dev Notes

  • Build attractive card for displaying the list component data
  • Start creating CRUD methods for admin ... data manipulation
  • Start learning reactive and template forms in Angular ....
  • Clean up data on listing cards and add more info

Think about using this code below in this app and other apps

  • this function can be used as a utility function to convert the snapshots for you
  • Good practice so not to repeat your self
export function convertSnaps<T>(snaps) {
        return <T[]> snaps.map(snap => {
            return {
                id: snap.payload.doc.id,
                ...snap.payload.doc.data()
            };
        });
    }

#Next step 1

One click of read more button ...

  1. Built single listing member
  2. Must pass data to detail component
  3. Detail component must have own url
  4. Route to the detail component on click
  5. Back button will take user to listings component
  6. Also must have more data about listing on the detail component page ....
  7. Use Angluar resolve ????
  8. Will Learn More

#Finished step 1 using angluar router >>> see below

Using a angluar router to pass data to list component

  1. The listResolver will pass data to the list component before it is rendered improving User exp
  2. ListResolver is just a service

#Notes about working with firestore and the rxjs lib

It is important to note that you are working with an Observable so ... In order to get the data that you need you must subscribe to the observable and then get data >> assign create a temp variable 'const data ' in the the subscribe and then assign it the the member to the component

will not use this code in app ...

 this.testDoc = this.db.doc('availableListings/D16VnZm2UAkUTDEXomEL');
    this.testDocData = this.testDoc.valueChanges();
    this.testDocData.subscribe(val => {
      const data =  {
        id: 'string',
        streetAddress: 'string',
        cityZip: 'string',
        image: 'string',
        price: 34343434
      }
      this.oneListing = data;
    })
     

  }

About

A Client Management PWA for commercial real estate agents built with angular and firebase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published