This sample app demonstrates building a simple restaurant recommendation service using Cloud Firestore. This demonstrates features such as compound queries, client-side transactions, subcollections, and offline persistence.
To browse the sample source, go to the sample page.
To clone the source:
git clone https://github.com/firebase/quickstart-android
To build and run the sample:
- Set up your environment to work with Cloud Firestore.
- Add Firebase to your app. Use the package name
- In the Authentication tab of the Firebase console, enable the Email/Password provider.
- Consult the sample's
README.mdfile for an example of security rules that are appropriate for this sample, then use the Firebase console to update the security rules for your project.
- Connect an Android device to your computer, then use Android Studio to run
firestoreapp on the Android device.
After the app is installed, you can sign in with any email and password. Tap the Add Random Items option in the app overflow menu to populate the home screen: