logo

Constatic

Discord Bot BaseGuidesDatabasesFirestore

Firestore

Guide to create a new firestore database

Creating a Firestore Database

You need to have a Firebase account!

If you don't have one, please go to https://console.firebase.google.com/ and log in with your Google account.

Let's create a project

firestore-step-01

Give your project a name and continue

firestore-step-02

Leave this option unchecked if you prefer

firestore-step-03

Now click on Firestore Database in the sidebar

firestore-step-04

Create a new database

firestore-step-05

Leave "production mode" checked and click next

firestore-step-06

Choose the location of your database (recommended to be closer to your application's location)

firestore-step-07

Now you have a Firestore database

firestore-step-08

Access the project settings

firestore-step-09

Go to service accounts and click on generate new private key

firestore-step-10

You will be able to save this file on your computer

firestore-step-11

Rename the file to "firebase.json"

firestore-step-13

Save it in the root of your project

You're ready to use it!

On this page