1.0.1 • Published 7 years ago

loopback-connector-blazestore v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

loopback-connector-blazestore

Firestore connector for the LoopBack framework.

npm npm npm

Installation

Create a new database

Then you should use a service account. Go to Project Settings > Service Accounts in the Google Cloud Platform Console. Generate a new private key and save the JSON file.

You should fill the application's datasource file which is located in /server/datasources.json with those details, You can find them in the downloaded JSON file from the Google Cloud Platform.

"firestore": {
  "name": "<the_name_of_your_database>",
  "connector": "loopback-connector-blazestore",
  "projectId": "",
  "clientEmail":  "",
  "privateKey": "",
  "databaseName": "" // Optional, Default: projectId
}

Connection properties

PropertyType  Description---
projectIdStringproject_id in the JSON file---
clientEmailStringclient_email in the JSON file---
privateKeyStringprivate_key in the JSON file---
databaseNameStringFirebase's project idOptional, Default: projectId---

And you can actually store those private details as an Environment variables, Check source-configuration

License

Copylefted (c) 2017 Rodrigo Gonzalez Godoy Licensed under the MIT license.