# orb-firebase

> Firebase helper classes

Latest version **0.0.31** (published 2019-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install orb-firebase
pnpm add orb-firebase
yarn add orb-firebase
bun add orb-firebase
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.31 |
| Published | 2019-08-03 |
| First published | 2019-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 359.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Lucas Martinez |
| Maintainers | oromi |

## Links

- npm: https://www.npmjs.com/package/orb-firebase
- npm.io page: https://npm.io/package/orb-firebase

## Dependencies (5)

- [firebase](https://npm.io/package/firebase.md) ^6.2.3
- [orb-model](https://npm.io/package/orb-model.md) 0.0.25
- [deep-equal](https://npm.io/package/deep-equal.md) ^1.0.1
- [firebase-admin](https://npm.io/package/firebase-admin.md) ^8.3.0
- [firebase-functions](https://npm.io/package/firebase-functions.md) ^3.0.2

## Recent versions

- 0.0.31 (latest) — 2019-08-03
- 0.0.30 — 2019-07-31
- 0.0.29 — 2019-07-31
- 0.0.28 — 2019-07-30
- 0.0.27 — 2019-07-30
- 0.0.26 — 2019-07-30
- 0.0.25 — 2019-07-30
- 0.0.24 — 2019-07-30
- 0.0.23 — 2019-07-30
- 0.0.22 — 2019-07-30
- 0.0.21 — 2019-07-30
- 0.0.20 — 2019-07-30
- 0.0.19 — 2019-07-30
- 0.0.18 — 2019-07-30
- 0.0.17 — 2019-07-30
- … 16 more at https://npm.io/package/orb-firebase/versions

## README

[Firebase with GraphQL](https://medium.com/@lukepighetti/yes-you-can-query-firebase-with-graphql-e79a45990f22)

## Why GraphQL with Firebase?
Firebase is an awesome platform for developers. It’s a one-stop-shop for authentication, hosting, database, and serverless cloud functions. It is realtime first and it has a very generous free tier and awesome tooling. But it has one achilles heel: querying the database. GraphQL provides a very dynamic and expressive query layer and can vastly simplify fetching operations for Firebase clients.

## Why Apollo Server 2?
apollo-server-express is very lightweight, easy to wire up, and pairs well with Firebase Cloud Functions. That makes it cheap, cheap, and cheap.

## Install Firebase CLI

```
npm install -g firebase
npm install -g firebase-tools
```

## Create a Firebase project

[First ensure you have OAuth 2.0 authentication](https://developers.google.com/identity/?authuser=1)

[](https://console.firebase.google.com)

```
firebase login
```

Then create a project folder and initialize the project with Functions. This project uses JavaScript.

```
firebase init

◯ Functions: Configure and deploy Cloud Functions
```

## Install dependencies

```
cd functions
npm install
npm install apollo-server-express express graphql
```

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