I have a goal of shipping Topple 1.0 before the end of 2020. I decided to use Firebase for authentication and data storage. It's simple to install and set up so I didn't have to spin up my own database.
Over the weekend, I worked to integrate Firebase into my Vue.js application locally. I learned about a few features that I didn't know existed for Firebase.
First, Firestore has a function called onShapshot
that allows the app to fetch database updates when they happen. This keeps the local state and the database data in sync.
Second, Firebase Auth offers a function called onAuthStateChanged
that allows you to call logic every time the event triggers. I used this hook to monitor the database collections once the user had logged in.
I'm very excited to ship this app so people can use it to topple their mountains of debt!