Now we need to link the app with Firestore so we can easily deploy our indexes and rules
This command will prompt a few questions
- Select to use an existing project
- Select the recently created project my-chat-app
What file should be used for Firestore Rules?press enter
File firestore.rules already exists. Do you want to overwritepress N
What file should be used for Firestore indexes?press enter
File firestore.indexes.json already exists. Do you want to overwritepress N
Afterward the CLI should generate 2 new files
firebase.json containing specifics firebase configs.
Now we can safely deploy Chatness rules and indexes. These are going to be important for the seed step further ahead.