Testing with the Firestore DB - PlateSwipe/PlateSwipe GitHub Wiki

For testing purposes we will need to change the name of the collection otherwise we will need to regenerate the whole production database.

This can be made through a few steps:

1) Create your collection of Firebase

  • Go to the Firestore of the PlateSwipe Project image

  • Create a new collection by clicking on the start collection image

  • Write a name starting by test to let others know that it's a test database and then give it some name: test$yourname$ image

  • Click on next to confirm changes and now your database is created.

2) Change the name of the constant in the Project

In the resources/C file there is a value where you have to paste the name of your collection in order to use your personal test database :

const val FIRESTORE_COLLECTION_NAME = "recipes"

Here replace the "recipes" by the name of your collection $\rightarrow$ "test$name$"

You re all set !!