Firebase as simple database to React app

Nathan Sebhastian on February 13, 2019

Firebase is an all-in-one backend as a service provider (BaaS) that provides database, authentication, cloud storage among their many services. I... [Read Full]
markdown guide
 

Excuse me if I've missed something. But surely having your API key inside the create-react-app will expose your backend to abuse.

Someone with knowledge of JavaScript could easily find the API key within your code and use the key to write whatever they want to the database?

 

Oh none at all, you're right on point. I've also wondered the same thing until I came to this post:

javebratt.com/hide-firebase-api/

I won't put anything into my Firebase project except for this tutorial, so for all purpose I think it will be fine.

 
 
 

Very handy, thanks for taking the time to write this up!

 
 

Good tutorial and very useful. It works well in develop mode but during production build, it says something like:

"Reference error: IDBIndex is not defined" and cancels the build

 

Thanks for the article!

Is this going to be a series? Are you planning to write about Firebase as an authenticator?

 

Thank you Sandor! I actually haven't taught about that.. you just give me a new idea! I will try to come up with a more advanced Firebase integration. Stay tuned!

 

i am getting error while putting the mine keys of firebase project, so how to solve it?

 

What error did you see in the console? It might be something with the security rule

code of conduct - report abuse