# loopback4-connector-firebase-admin

> Firebase Admin connector for the LoopBack framework.

Latest version **1.0.1** (published 2022-04-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install loopback4-connector-firebase-admin
pnpm add loopback4-connector-firebase-admin
yarn add loopback4-connector-firebase-admin
bun add loopback4-connector-firebase-admin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-04-28 |
| First published | 2021-08-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | huytbt |
| Maintainers | huytbt |
| Keywords | connector, datasource, huytbt, loopback, strongloop, admin, firebase |

## Links

- npm: https://www.npmjs.com/package/loopback4-connector-firebase-admin
- Repository: https://github.com/huytbt/loopback4-connector-firebase-admin
- Homepage: https://github.com/huytbt/loopback4-connector-firebase-admin#readme
- Issues: https://github.com/huytbt/loopback4-connector-firebase-admin/issues
- npm.io page: https://npm.io/package/loopback4-connector-firebase-admin

## Dependencies (2)

- [firebase-admin](https://npm.io/package/firebase-admin.md) ^10.1.0
- [loopback-connector](https://npm.io/package/loopback-connector.md) ^5.0.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-04-28
- 1.0.0 — 2021-08-15

## README

# loopback4-connector-firebase-admin

Firebase Admin connector for the LoopBack framework.

## System Requirements

- **[NodeJS](https://nodejs.org/en/)** (version >= 10).

## Installation

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

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

```sh
lb4 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 **loopback4-connector-firebase-admin**
- Install loopback4-connector-firebase-admin (Y/n) **y**

Then you should use a service account. Go to [Project Settings > Service Accounts][4] 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.

```json
"Firebase": {
  "name": "Firebase",
  "projectId": "",
  "clientEmail":  "",
  "privateKey": "",
  "databaseURL": ""
}
```

### Connection properties

| Property     | Type&nbsp;&nbsp; | Description                   | ---                          |
| ------------ | ---------------- | ----------------------------- | ---------------------------- |
| projectId    | String           | project_id in the JSON file   | ---                          |
| clientEmail  | String           | client_email in the JSON file | ---                          |
| privateKey   | String           | private_key in the JSON file  | ---                          |
| databaseURL  | String           | realtime database url         | ---                          |

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

---
_Source: https://npm.io/package/loopback4-connector-firebase-admin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
