Project Configuration

This lesson showcases the configuration code which contains key pieces of information about the project.

Copying the Configuration to React

We will use a JavaScript class to encapsulate all Firebase functionalities, Real-time Database, authentication, and a well-defined API for the whole application. We only need to instantiate the class once, after which it can be used to interact with the Firebase API (your custom Firebase interface).

Let’s start by copying the configuration from our Firebase project’s dashboard on their website to our application as a configuration object in a new src/components/Firebase/firebase.js file. Make sure to replace the capitalized keys with the corresponding keys from your copied configuration:

Get hands-on with 1400+ tech skills courses.