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-ios
To build and run the sample:
quickstart-ios/firestoredirectory, install the required dependencies:
- Add Firebase to your app.
- In the Authentication tab of the Firebase console, go to the Sign-in Method page and enable the Email/Password provider. This app uses FirebaseUI for authentication.
- 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.
- Run the app on an iOS device or on the iOS Simulator.
After installing the app, tap Populate to add restaurants to the database. You should see a list of restaurants displayed in the app: