Skip to content

Firebase Hosting

ThomasJon196 edited this page Oct 31, 2022 · 13 revisions

What is/does firebase?

  • Build scalable applications in the cloud.

  • Realtime database: Seamless synchronization between data collection and Frontend

    The main benefit of the realtime database is that your data is synchronized across all of your clients. In practice, this means that we have to deviate a bit from the initial conceptional model of our React database as a simple JSON. While setting a property is similar, you don't simply get a value with the property. Instead, you subscribe to a channel for changes to that property. With that in mind, you design a Firebase client differently than you would with a traditional REST API.

- Firebase SDK(Softw. Dev. Kit) libraries are imported into JavaScript Code:

Services include:

  • Firebase Authentication
  • Cloud Firestore
  • Cloud Storage
  • Cloud Messaging
  • Performance Monitoring,

When to use firebase?

  • UI has to react to changes in your database/collections/elements.
  • If all you need is to react to the addition/update of items in a collection or object, Firebase is great.

When not to use firebase?

  • If you need extensive queries or have complex relational data, Firebase would be a poor choice for your main database.

How to use firebase?

Tutorial project

Requirements:

Node.js is required for firebase:

  • Install node.js version > 14.0.0 Tutorial

Q & A

Whats the difference between Firestore and Cloud storage on firebase? Cloud storage: Plain file system. No queries. Optimized for download speed. Firestore: Database used for querying data. Not used for storing binary data, rather actual values.
When to use Realtime database or Firebase? Use realtime databse when priority is: no advanced querying, synced data, ...

Clone this wiki locally