DEV Community

Discussion on: How to use Firebase?

Collapse
 
jaakidup profile image
Jaaki • Edited

Yes, one of the selling points of Firebase is the realtime database, think of a chat server here. But there are many other uses for it.

Also storing data in firebase is obviously Nosql and you don't have to define anything on the server side to store data. This makes it a nice tool to test an app idea because you don't have to write server side code to CRUD data.

If your inventory is also stored in Firebase, then you could also use Firebase Cloud Functions to check if the item is in stock.
Cloud functions run on the firebase server side and the code is thus hidden from the client.

With the right design, you could just use vue to check whether the item is in stock in firebase and because it is realtime, the product should disappear out of available stock.

Hope this helps a little and happy coding!