1.0.0 • Published 5 years ago

atlassian-connect-firestore v1.0.0

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

Firestore Adapter for Atlassian Connect Express

Usage

To use the storage adapter, add the key "adapter" to the config.json:

"store": {
    "adapter": "firestore"
}

Then make sure that you register the adapter factory with the following code:

const admin = require('firebase-admin');
const functions = require('firebase-functions');
const { factory } = require('atlassian-connect-firestore')

admin.initializeApp(functions.config().firebase)

const db = admin.firestore()

ac.store.register('firestore', factory(db))

License

MIT