From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Define React environment variables
From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Define React environment variables
- [Instructor] Something I'd like to show you before moving forward. So that's important to know. So whenever you work on a web project is that whenever you deal with sensitive data like this, so this is the configuration settings for your project, your Firebase projects. So this is information that you should always keep private and secret because you don't want to expose this publicly because anyone could then interact with your database and other Firebase services that you have set up for your project. So this is very critical that you keep this private. For that, we're going to use and create environment variables, and we're going to do that with a new file that I'm going to create at the root of the project. And that's going to be env. And that is something that you're going to specify in your gitignore because you never want to push this. So if you ever use a remote repository, a public remote repository on GitHub for…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
Get started with the Cloud Firestore3m
-
(Locked)
Learn to add and manage data5m
-
(Locked)
Set a new document and store and sync data into the Cloud Firestore5m 53s
-
(Locked)
Learn to read data from a collection5m 32s
-
(Locked)
Get documents and display them in the app5m 18s
-
(Locked)
Define React environment variables4m 39s
-
-
-
-
-
-
-