CodySly / King-Crawlers-App

0 stars 0 forks source link

FireBase Account #14

Open CodySly opened 8 months ago

CodySly commented 8 months ago

FireBase Account

Create a FireBase Account for Backend data storage.

Setting up Firebase for an iOS application involves several steps. Firebase provides a suite of tools and services for app development, including real-time database, authentication, cloud functions, and more. Here's a step-by-step guide on how to create a Firebase account and set it up for an iOS application:

Go to the Firebase Console. Click on "Get Started" or "Add Project."

Click on the "Add Project" button. Enter your project name and select your country/region. Optionally, you can enable Google Analytics for your project.

If you choose to enable Google Analytics, follow the prompts to set it up for your project.

Choose the features you want to use in your project. For an iOS application, you may want to enable services like Authentication, Cloud Firestore (or Realtime Database), and Cloud Storage.

Click on the iOS icon to add an iOS app to your project. Enter your iOS app's bundle identifier. Optionally, enter other details like App nickname.

Click "Register App." Download the GoogleService-Info.plist file. This file contains configuration settings for your iOS app.

Drag the downloaded GoogleService-Info.plist file into your Xcode project. Make sure to add it to your app target.

  1. Open your Xcode project.

  2. Install Firebase SDK using Cocoapods (or Swift Package Manager):

Bash Terminal - "pod init"

  1. Edit your Podfile to include the following pods:

Bash Terminal - pod 'Firebase/Core' pod 'Firebase/Auth' pod 'Firebase/Firestore' # or 'Firebase/Database' for Realtime Database pod 'Firebase/Storage'

Bash Terminal - pod install

  1. Open your AppDelegate.swift file.

  2. Import the Firebase module:

Swift Terminal -

                     import Firebase
  1. Add the following code in the application

(_:didFinishLaunchingWithOptions:)

method:

Swift Terminal -

                     FirebaseApp.configure()

If you enabled Authentication, follow Firebase's documentation to set up authentication methods such as email/password, Google Sign-In, or others.

If you enabled Cloud Firestore or Realtime Database, follow Firebase's documentation to set up your database, define data models, and interact with the database.

If you enabled Cloud Storage, follow Firebase's documentation to set up storage buckets and interact with Cloud Storage.

Write test code to ensure that Firebase is configured correctly and that you can interact with the services you've enabled.

Build and run your iOS app in Xcode to make sure everything is working as expected.

Visit the Firebase Console to monitor your project, view analytics, and manage your Firebase services.

CodySly commented 8 months ago

FireBase Account

Account Info

Update 11/16/2023

Created the FireBase Account - Under Personal Account Codysburgess@gmail.com 11/15/2023

Update 11/20/2023

Authentication - Enabled

FireStore DataBase - Enabled

Storage -Enabled

FireBase API / SDK and Xcode project have been linked.