1. Create Backend (Firebase)

The Trid App using Firebase as Backend. Therefore you need to​ Create A New Project on Firebase and add Firebase to your iOS and Android app.

Add new Firebase Project

  1. Go to the Firebase website and sign up for an account if you don’t already have one. You can log in with a Google account for easy access.

When you log in, you should be directed to the Firebase console. You can manage all of your projects here. Go ahead and create a new one by clicking the blue ADD PROJECT button.

2. The "Add a project" window opens.

Enter the following information and click "CREATE PROJECT".

  • Project name Enter Your name project. This is the project name of your app in the Firebase console.

  • Project ID (Optional):

    Firebase automatically assigns a unique ID to your Firebase project. This identifier displays in publicly visible Firebase services.

  • Locations Select your location. Hover on the "?" mark to display the description.

Firebase automatically provisions resources for your Firebase project. The process typically takes a few minutes. When the process completes, you'll be taken to the overview page for your Firebase project in the Firebase console.

Project Overview

Now that you have a project, you can add your iOS and Android app to it:

Add Firebase to your iOS project

  1. Click Add Firebase to your iOS app and follow the setup steps.

  2. When prompted, enter your app's bundle ID. It's important to enter the bundle ID your app is using; this can only be set when you add an app to your Firebase project.

  3. During the process, you'll download a GoogleService-Info.plist file to add for XCode project later. You can download this file again at any time.

  4. After you add the initialization code, run your app to send verification to the Firebase console that you've successfully installed Firebase.

iOS app

Add Firebase to your Android app *

  1. Click Add Firebase to your Android app and follow the setup steps.

  2. When prompted, enter your app's package name. It's important to enter the package name your app is using; this can only be set when you add an app to your Firebase project.

  3. During the process, you'll download a google-services.json file. You can download this file again at any time.

  4. After you add the initialization code, run your app to send verification to the Firebase console that you've successfully installed Firebase.

Android App

Config Database Rules

This database will be used for both iOS and Android app.

  1. Choose "Database" on the left menu. And click button "Create database"

2. The "Security rules for Cloud Firestore" window opens. Select "Start in locked mode" and click Enable Button

3. Then, Select "Realtime Database" in droplist and open tab "Rules". Paste bellow statement: { "rules": { ".read": true, ".write": "auth !== null" } }

Click Publish. Done.

Import Trid Sample Data.

  1. In Data tab. Click icon more, choose Import JSON

2. The "Import JSON" window opens. Click Browse to Upload file (.json)

You can choose file "tridme-demo-export.json" in folder "trid-package/admin-site/data-demo/"

Or you can download here: https://bit.ly/37Q0HmS

3. Click Import Button. Finish.

Import successful data demo

Enable Storage

Enable Storage to upload images from Admin Site

  1. Click Storage Menu in Sidebar

  2. Click "Get Started" button

3. Click "Goi it" button. Finish.

Add Authentication way

To users can register by email and facebook on Trid app. You must enable them in Authentication Firebase.

Choose "Authentication" on the left menu. Open tab "Sign-in method". Enable "Email/Password"

Enable Email/Password

Enable "Facebook"

Enter your facebook app id & enable this sign-in method

How to create a Facebook app and get App ID?

1. Go to Facebook developer site https://developers.facebook.com/

2. Add new app

Create new app with Name as you want
Turn on the status to go live this app

You have done config for Firebase Backend. Go Next Step