Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUESTION: Real Time Database as backend #52

Closed
cngeru opened this issue Jan 21, 2021 · 5 comments
Closed

QUESTION: Real Time Database as backend #52

cngeru opened this issue Jan 21, 2021 · 5 comments

Comments

@cngeru
Copy link

cngeru commented Jan 21, 2021

Is it possible to use the firebase realtime database as the backend ?

@cudr
Copy link
Owner

cudr commented Jan 21, 2021

Yes, sure. You need NodeJS firebase rest client, and connect slate-collaborative/backend methods onDocumentLoad and onDocumentSave with your firebase entities query.

@cngeru
Copy link
Author

cngeru commented Jan 21, 2021

I can't find the rest client.. Or is it just the regular firebase package ?
Is there an example code snippet with this and will the data be streamed to the other clients ?
Can once sync with the db after an event (onClick) or intervals to reduce the number of calls?

@cngeru
Copy link
Author

cngeru commented Jan 21, 2021

Is there an example using JS ?

@cudr
Copy link
Owner

cudr commented Jan 21, 2021

@cngeru I mean firebase-admin nodejs sdk. You could read more here

@cudr cudr closed this as completed Jan 22, 2021
@cngeru
Copy link
Author

cngeru commented Jan 26, 2021

@cudr can I use the real time database Read data once capability to read the initial data then listen for updates on the documents.
Is this possible and where would I connect the function ?
Instead of having real time updates how do I implement the sync with a click of a button ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants