Cloud Firestore(opens in a new tab) is a cloud-hosted NoSQL Firebase database built on Google’s infrastructure
Create a Firebase project
- 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).
- Once logged in, click Go to console in the top right corner.
- In the Firebase console, click Add project.
- Enter your project name and click Continue.
- Click Create project.
Create a Firebase config
- In your Firebase project console, click on the settings icon that resembles a gear in the top left corner.
- Select Project settings from the dropdown menu.
- Under the General tab, scroll down to Your apps and click on the code icon (
</>) to select the web platform. - Type in the name of your app and click Register app.
- Make a note of the Firebase
apiKey,authDomain, andprojectId. You will need that information to update the app’s environment variables.
Create a Cloud Firestore database
- In your Firebase console, click Firestore Database under Build in the left pane. Follow the steps to create a Cloud Firestore database.
- Click Create database.
- Choose Start in test mode.
- Select your Cloud Firestore location and click Enable.