Introduction to Firebase. In this app we will cover Authentication, Firestore and Storage.
In order to run this app please do the following:
- Clone this project to your machine.
- Using your google sign in account, navigate to the Firebase console and create a Firebase project.
- Go through the project creation steps below.
- Download and add the
GoogleService-Info.plistfile to your Xcode project. - At this point you will be able to successfully run this project.
- user can sign in
- user can create a new account
- user can sign out
- user can create an item
- user can view an item
- app stores user profile photos
- app stores item photos
- user can change profile photo and display name
- user can delete ONLY their created item (security rules)
- set security rules to prevent user from deleting items that wasn't created by them
- user can see a specific user's items
- can add a comment to an item (firebase subcollections)
- can query (filter) for a specific category of items
- user can favorite an item from the item feed
In the left column are the services available from Firebase. In this course we will be using Authentication, Database and Storage.
Click on the iOS button to start the process integrating the Firebase project with your Xcode project. This will be make possible with a created GoogleService-Info.plist file.
The bundle identifier is critical in associating your Xcode project with the Firebase project.
.gitignore file
GoogleService-Info.plist
Download the GoogleService-Info.plist file and add it to your Xcode project.
Initialize pod into your project by running pod init in Terminal. Open your Podfile and add pod 'Firebase/Analytics' to it and run pod install. At this point closse Xcode and now you will have an xcworkspace you will be editing from now on. This xcworkspace will have your Xcode project along with the Pods that were installed.
Open your xcworkspace and Edit the AppDelegate as pictured below:
To verify all went well with the Firebase integration, delete the app and re-run it after adding Firebase configuration in the AppDelegate, wait a few moments for the Firebase server to detect the connection. If all went well you will receieve the verification banner below. Congratulations. 🥳















