How to deploy application with database?

Hello
Wondered how to deploy an application that relies on a database
For example, now operate under the LAN, the concept of "user" no, make a request to ferbasa and so on.
I want to pour out the project on github peydzhes, but the users are real and if you pour as it is, they will see my notes.
I mean, I need to somehow identify the user and when he will create the first note, then will the call not to the database named items, and items + //user
Question: what is the easiest way to do it without buck?
As an idea, passport+express, but it will take time, because doing this only once. But there will be a Google ID, it is unique
June 10th 19 at 15:26
1 answer
June 10th 19 at 15:28
Solution
You can write in the cookie a unique id. Utility to generate.
To write firebase data on this key.
During application initialization to check if the cookie is there, then request in firebase data by key. If not generate id and record in a cookie. As a result, the notes would all be different. And to pick up a foreign id key is unlikely.
However, the logic of the update notes have to change, but you do so and so will have to change.
Here it will be necessary for each change to write the array in firebase one key.

And then the authorization will understand.

Instead of cookies , you can use localstorage.

Even easier yet to write user stories in localstoragewithout using firebase
With local not interesting :)
Thank you :) - krista.Eichma commented on June 10th 19 at 15:31

Find more questions by tags ReactDatabasesRedux