Friendly Eats is a restaurant recommendation app built on Firestore. For more information about Firestore visit the docs.


Getting Started

  • When you open the app you will be prompted to sign in, choose any email and password.
  • When you first open the app it will be empty, press the Populate button in the top left.
  • Modify your Firestore security rules to allow reading and writing reviews and restaurants. Take a look at the rules below for reference.


Here's an adequate set of rules for running FireEats.

service cloud.firestore {
  match /databases/{database}/documents {
    match /restaurants/{restaurant} {
      match /ratings/{rating} {
        allow read: if request.auth != null;
        allow write: if request.auth != null 
                     && request.auth.uid ==;

      allow read: if request.auth != null;
      allow create: if request.auth != null;
      allow update: if request.auth != null
                    && ==
                    && ==
                    && ==
                    && ==;


As you use the app's filter functionality you may see warnings in logcat that look like this:

Error fetching snapshot results: Error Domain=io.grpc Code=9 "The query requires an index. You can create it here:" UserInfo={NSLocalizedDescription=The query requires an index. You can create it here:}

This is because indexes are required for most compound queries in Firestore. Opening the link from the error message will automatically open the index creation UI in the Firebase console with the correct parameters filled in.