Setting up Flashlight on Heroku for ElasticSearch with new Firebase

后端 未结 1 1374
天命终不由人
天命终不由人 2021-02-02 01:10

My goal is to connect Firebase with ElasticSearch for indexing so that I can implement \"like\" queries when searching usernames in my iOS app. From what I\'ve read this is the

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 01:24

    To get your FB_NAME (it's basically your Firebase project's ID):

    1. Go to Project Settings
    2. Go to General tab
    3. Copy your Project ID

    To get your FB_TOKEN:

    1. Go to your Google Developer Console
    2. Select the project that is associated with your Firebase project
    3. Go to Credentials page
    4. Create a new API Key or choose if you have an appropriate one already

    Note: You can also set (and see) those variables in you Heroku project (if you don't want to set it from the terminal). To do that:

    1. Go to your Heroku project's Settings page
    2. Click on the Reveal Config Variables button

    Good luck.

    0 讨论(0)
提交回复
热议问题