2.1.0 • Published 4 years ago

loopback-connector-realtime-database v2.1.0

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

loopback-connector-realtime-database

Firebase Realtime Database connector for the LoopBack framework.

Codacy Badge CircleCI npm npm LICENSE Dependabot Status FOSSA Status

System Requirements

Installation

If you want to know how to get started with Loopback check this.

To add a new data source, use the data source generator:

lb datasource

Then the data source generator will prompt some questions like

  • Enter the data-source name: Firebase
  • Select the connector for Firebase: other
  • Enter the connector's module name loopback-connector-realtime-database
  • Install loopback-connector-realtime-database (Y/n) y

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.

"Firebase": {
  "name": "Firebase",
  "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

Inspiration

Dyaa Eldin Moustafa Firestore connector

License

Copylefted (c) 2020 Henrique Carvalho da Cruz Licensed under the MIT license.

2.1.0

4 years ago

2.0.0

4 years ago

1.26.0

4 years ago

1.25.0

4 years ago

1.24.0

4 years ago

1.23.0

4 years ago

1.22.0

4 years ago

1.21.0

4 years ago

1.20.0

5 years ago

1.19.0

5 years ago

1.18.0

5 years ago

1.17.0

5 years ago

1.16.0

5 years ago

1.15.0

5 years ago

1.14.1

5 years ago

1.14.0

5 years ago

1.13.0

5 years ago

1.12.0

5 years ago

1.11.0

5 years ago

1.10.0

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago