Set up Firebase database

Cloud Firestore(opens in a new tab) is a cloud-hosted NoSQL Firebase database built on Google’s infrastructure

Create a Firebase project

  1. Sign in to Cloud Firestore(opens in a new tab) using your Google account. To create a Google account, visit the Google signup page(opens in a new tab).
  2. Once logged in, click Go to console in the top right corner.
  3. In the Firebase console, click Add project.
  4. Enter your project name and click Continue.
  5. Click Create project.

Create a Firebase config

  1. In your Firebase project console, click on the settings icon that resembles a gear in the top left corner.
  2. Select Project settings from the dropdown menu.
  3. Under the General tab, scroll down to Your apps and click on the code icon (</>) to select the web platform.
  4. Type in the name of your app and click Register app.
  5. Make a note of the Firebase apiKeyauthDomain, and projectId. You will need that information to update the app’s environment variables.

Create a Cloud Firestore database

  1. In your Firebase console, click Firestore Database under Build in the left pane. Follow the steps to create a Cloud Firestore database.
  2. Click Create database.
  3. Choose Start in test mode.
  4. Select your Cloud Firestore location and click Enable.

Leave a comment

Your email address will not be published. Required fields are marked *