Setting up a Database

You will need a Google account to do it.

Click here if you don't have a Google account.

1

First, go to Firebase Console and create a new project by clicking on

2

You'll need to enter a project name. Write whatever you would like.

3

Disable Google Analytics for your project.

4

Click on Create project.

5

Wait until the setup finishes and click on Continue.

6

Click on the </> button

7

Add an app name. It can be whatever you want. Then click on Register App

8

You'll see a code block. Copy the config as shown on the image.

Make sure to not copy the ; at the end of the config.

Please paste this somewhere, and edit what you pasted to have a " around each key: It should look like {"apiKey":..., "authDomain":...,...} instead of {apiKey:..., authDomain:...,...}

9

Click on Continue to the console.

10

Click on Build.

11

Click on Firestore Database

12

Click on Create database

13

Choose the nearest location to you and then click Next.

14

Click on Create

15

Click on Rules

16

Change the text as shown on the image.

17

Click on Publish

18

Click on Build and then Storage

19

Click on Rules

20

Change the text as shown on the image.

21

Click on Publish

22

Go back to Decks and paste the JSON that you copied at step 8.

Click on OK

If you haven't copied the JSON at step 8, follow the following steps:

23

Click on the gear icon and then on Project settings

24

Scroll down and then copy the config as seen on the image.

Make sure to not copy the ; at the end of the config.

Please paste this somewhere, and edit what you pasted to have a " around each key: It should look like {"apiKey":..., "authDomain":...,...} instead of {apiKey:..., authDomain:...,...}

25

Go back to Decks and paste the JSON that you copied at step 8.

Click on OK