Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Using the Example Project

Ben Myers edited this page Apr 22, 2022 · 4 revisions

Thanks for choosing EasyFirebase! πŸŽ‰ Follow these steps to set up the EasyFirebase example project.

Setup the Example App

Install Xcode

You'll need to use a version of Xcode that supports iOS 15.0+.

Clone and Open the Project

Head to the repository homepage, then clone the project.

Navigate to the root directory of the project, then find easy-firebase > Examples > EasyFirebaseExample_iOS.xcodeproj and open the Xcode project file.

Run the Example App

Wait for the dependencies to download, then run the project in a simulator or physical device using ⌘R.

Using the Example App

Auth

You can test out the features of EasyAuth. Enter a username or password, create an account or sign in, and then view your user data.

Firestore

This page helps you understand how EasyFirestore works. The local ExampleDocument object has three fields: favFood, hasJob and age. You can adjust the local values using the fields and the Locally Update Object button. To push to Firestore, use the other buttons. EasyFirestore will automatically update the local object when data in Firestore updates, but you can also use the Manually Fetch Data button to do the same.

For more details on what each of the buttons do, be sure to browse through the code. Relevant files to check out:

πŸ”‘ = EasyAuth example πŸ”₯ = EasyFirestore example