Margarita Monorepo

Margarita Monorepo

  • First time here?
  • Developers
  • Got a question?
  • GitHub

›Developing

Home

  • What is this all about?
  • Web and Mobile demos
  • Features
  • What is Tequila API?
  • Questions/Bugs/Feature Requests

Developing

  • Getting Started
  • Contributing
  • Folder Structure
  • Technical Overview
  • Guide: Get your Tequila API key
  • Guide: Firebase implementation

Apps

  • List of Apps
  • GraphQL Server
  • Mobile
  • Web

Packages

  • List of Packages
  • Universal Components

    • Introduction
    • Getting Started
    • Contributing
  • Margarita Components

Guide: Firebase implementation

Firebase is used for sample implementation of user login and data storing.


Note: This part is completely optional and can be replaced with any other solution of your choice.

Firebase and Google login related .env variables can be left empty. In this case the app will operate normally, only the user login part will be disabled.


To obtain FIREBASE and GOOGLE_OAUTH .env variables:

Setup Firebase project

  • Create new project on Firebase website
  • Enable Google Sign-in method
    • Go to Develop/Authentication section of your project
    • Select Sign-in method tab
    • From Sign-in providers select and enable Google option
  • Obtain Firebase .env variables
    • Select Project Overview
    • From top website Add an app to get started section select web version
    • Copy Firebase variables from modal into .env

Obtain Google OAuth client IDs

  • Go to Credentials section of Google Developers Console
  • If it's not already selected, pick your newly created Firebase project from dropdown menu on website toolbar
  • Create credentials (repeat these steps for iOS and Android)
    • Select OAuth client ID from Create credentials dropdown
    • Select platform (iOS or Android)
    • Fill required fields
    • Important: Package name needs to be set to host.exp.exponent
    • Click Create
  • Copy newly created Client ID for both platforms from Credentials/OAuth 2.0 client IDs section to GOOGLE_OAUTH variables inside .env
Last updated on 5/9/2019 by Josef Duda
← Guide: Get your Tequila API keyList of Apps →
Copyright © 2019 Kiwi.com