https://github.com/demsking/firebase-import-users
This script helps to import a users list from a CSV file to Firebase
https://github.com/demsking/firebase-import-users
database firebase import users
Last synced: 3 months ago
JSON representation
This script helps to import a users list from a CSV file to Firebase
- Host: GitHub
- URL: https://github.com/demsking/firebase-import-users
- Owner: demsking
- License: mit
- Created: 2017-07-05T19:08:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T19:39:31.000Z (about 9 years ago)
- Last Synced: 2024-05-22T21:22:51.517Z (about 2 years ago)
- Topics: database, firebase, import, users
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://stedolan.github.io/jq/)
## Usage
```shell
export USERS_LIST=~/path/to/users-list.csv
export GOOGLE_APPLICATION_CREDENTIALS=~/path/to/credentials.json
# Import the users list
make batch-import
# Retry if there are errors
make retry update-profile
```
## CSV format
```csv
"timestamp","email","first_name","last_name"
"2017-01-31 06:32:34","bill.gates@gmail.com","Bill","Gates",
"2017-01-26 19:46:47","jony.bravo@example.com","Jony","Bravo"
"2016-01-18 01:36:38","obama@wiki.com","Obama",""
```
## Firebase Admin Credentials
Follow [this link](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork) to get your Firebase Admin Credentials.
## License
Under the MIT license. See [LICENSE](https://github.com/demsking/firebase-import-users/blob/master/LICENSE) file for more details.