@atlas.js/firebase
@atlas.js/firebase
A Firebase-admin service for @atlas.js.
Installation
npm i @atlas.js/firebase
Usage
const 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' atlasawait atlasstart // Your firebase app is now available here:atlasservicesfirebase // ie.const users = await atlasservicesfirebase
License
See the LICENSE file for information.