Skip to main content
10 votes
Accepted

What is the correct way to configure a testing mode on a class?

You should use a different approach. The commonly advised approaches are Use DI to inject the firestore object into your repository class instance. This way, your test framework can just inject a ...
Bart van Ingen Schenau's user avatar
7 votes
Accepted

How do I handle two apps for a single Firebase Project?

You have basically three options: You define one of the two projects (lets call it project "A") as the "leading one", where the firestore resources are stored. Then you manage ...
Doc Brown's user avatar
  • 221k
2 votes

Why do many developers use 3rd party provider for notifications instead of rolling their own?

I think the main reason is that there are multiple types of notification and you don't want to deal with them all browser android iphone windows phone!! teams? sms If you just want one of them, fine ...
Ewan's user avatar
  • 84.6k
1 vote

Firebase Auth system with Rails API design

The reason this seems so hard is because you have introduced a distributed transaction to your system, which happens when utilizing polyglot persistence. Both operations need to succeed, or both need ...
Greg Burghardt's user avatar
1 vote

How do I store reported comments/photos in firestore?

The structure of your data highly depends on what cases you want to optimize for. If you look for read performance you might want to denormalize the data you store. That means you might have ...
BeepBoop's user avatar
1 vote

Thoughts on adding a DB collection with a single record for version

Turns out this is pretty much build into Firebase already so there seems to be no need to write this yourself in local storage. It seems I can check the DB version with one call and then globally ...
Jonathan's user avatar
  • 129
1 vote

Can modeling Firestore using CQRS concept will prevent from Firebase locked-in?

Command Query Responsibility Segregation (CQRS) is a pattern that allows to differentiate read and write models. Both models can work on a single database, or you store a write model in a separate ...
Rik D's user avatar
  • 4,982

Only top scored, non community-wiki answers of a minimum length are eligible