test

Constatic

Discord Bot BaseDatabases

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-setp-01

Give your project a name and continue

firestore-setp-02

Leave this option unchecked if you prefer

firestore-setp-03

Now click on Firestore Database in the sidebar

firestore-setp-04

Create a new database

firestore-setp-05

Leave "production mode" checked and click next

firestore-setp-06

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

firestore-setp-07

Now you have a Firestore database

firestore-setp-08

Access the project settings

firestore-setp-09

Go to service accounts and click on generate new private key

firestore-setp-10

You will be able to save this file on your computer

firestore-setp-11

Rename the file to "firebase.json"

firestore-setp-13

Save it in the root of your project

You're ready to use it!

On this page