项目作者: demsking

项目描述 :
This script helps to import a users list from a CSV file to Firebase
高级语言: JavaScript
项目地址: git://github.com/demsking/firebase-import-users.git
创建时间: 2017-07-05T19:08:53Z
项目社区:https://github.com/demsking/firebase-import-users

开源协议:MIT License

下载


firebase-import-users

This script helps to import a users list from a CSV file to Firebase

Requirements

This script use jq for the JSON parsing: https://stedolan.github.io/jq

Usage

  1. export USERS_LIST=~/path/to/users-list.csv
  2. export GOOGLE_APPLICATION_CREDENTIALS=~/path/to/credentials.json
  3. # Import the users list
  4. make batch-import
  5. # Retry if there are errors
  6. make retry update-profile

CSV format

  1. "timestamp","email","first_name","last_name"
  2. "2017-01-31 06:32:34","bill.gates@gmail.com","Bill","Gates",
  3. "2017-01-26 19:46:47","jony.bravo@example.com","Jony","Bravo"
  4. "2016-01-18 01:36:38","obama@wiki.com","Obama",""

Firebase Admin Credentials

Follow this link to get your Firebase Admin Credentials.

License

Under the MIT license. See LICENSE file for more details.