mmontori1 / Firebase-iOS-boilerplate

Firebase iOS boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firebase iOS Boilerplate

This boilerplate is to start off an iOS project with a simple setup with Firebase to create projects with simple authentication, database, and storage from Firebase, as well as customize your own login user interface. You can see it in action by running the Example project through X-code. Keep in mind, you need to install the CocoaPods for the Example project to work.

Setup

CocoaPod Setup

After cloning/forking the repo, You have to first work on setting up all the files to the project and connecting it to Firebase. Copy over all the files in the Files folder and apply them to a new XCode iOS project you've created. Make sure that the App Delegate and Main.storyboard replace the project's files that you created.

You need to apply Firebase using CocoaPods by running this within the project directory on terminal:

pod init
pod install

Then add these lines to your Podfile in your project.

pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'

Run pod install again within the project directory on terminal.

pod install

From there, all you have to do is setup your Firebase online and connect the project from there.

Applying Firebase to the project

Go on Firebase using a Google account and start up a project.

alt text

Now you just want to add Firebase to your app. You can do this by setting the project to iOS. Follow the steps and only do the first two, which are to register the app and download the config file. You don't need to do add the Firebase SDK or add the initializer code since it is already set up.

alt text

Make sure you then enable email login in the authentication tab on Firebase.

alt text

That's it! Now you can work off making your own iOS app using Firebase.

Issues

If there are any problems on the project, please go ahead an open up an issue on this repo.

Thanks!

About

Firebase iOS boilerplate


Languages

Language:Swift 99.2%Language:Ruby 0.8%