Adding an .env file to React Project

4 steps npm install dotenv –save Next add the following line to your app.require(‘dotenv’).config() Then create a .env file at the root directory of your application and add the variables to it. Finally, add .env to your .gitignore file so that Git ignores it and it never ends up on GitHub. If you are using create-react-app then you only need step 3 and … Read more

Firebase – What is the API Key

In Firebase, when we sign up , it gives us an API key for each firebase Url. But where is it used in a consuming application? The fireBase API does not provide any means to supply API Key. Security : What prevents anyone to go ahead and write any object to the given firebase Url? How … Read more