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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
firebase × 9database × 2
database-design × 2
unit-testing × 1
domain-driven-design × 1
testing × 1
api × 1
microservices × 1
android × 1
authentication × 1
ruby-on-rails × 1
nosql × 1
project-structure × 1
repository-pattern × 1
reactjs × 1
database-development × 1
csv × 1
notifications × 1
push × 1
active-directory × 1