1
0 Comments

Connected Firebase Auth & Firestore

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!

Trending on Indie Hackers
How I grew a side project to 100k Unique Visitors in 7 days with 0 audience 47 comments Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 27 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments How I Launched FrontendEase 13 comments