3.0.0 • Published 6 years ago

@atlas.js/firebase v3.0.0

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
6 years ago

@atlas.js/firebase

A Firebase-admin service for @atlas.js.

Installation

npm i @atlas.js/firebase

Usage

import { Atlas } from '@atlas.js/atlas'
import * as Firebase from '@atlas.js/firebase'

const atlas = new Atlas({
  config: {
    services: {
      firebase: {
        name: 'my-fb-dev',
        // The path, relative to `root`, to the Firebase's credential JSON file
        // you got from the Admin UI
        credential: 'path/to/credential.json',
        // Alternatively, this can be an object which goes directly to
        // `Admin.credential.cert()`:
        credential: {},
        // Your Firebase database URL
        databaseURL: 'my-fb-dev.firebaseio.com',
      }
    }
  }
})
atlas.service('firebase', Firebase.Service)
await atlas.start()

// Your firebase app is now available here:
atlas.services.firebase

// ie.
const users = await atlas.services.firebase.database()
  .ref('/users')
  .once('value')

License

See the LICENSE file for information.

3.0.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.1.0-alpha.7

6 years ago

2.1.0-alpha.6

6 years ago

2.1.0-alpha.5

6 years ago

2.1.0-alpha.4

7 years ago

2.1.0-alpha.3

7 years ago

2.1.0-alpha.2

7 years ago

2.1.0-alpha.1

7 years ago

2.1.0-alpha.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago