1.0.7 • Published 3 years ago

firebase-algolia-sync v1.0.7

Weekly downloads
10
License
ISC
Repository
github
Last release
3 years ago

Firebase Algolia-sync

npm.io

This is a module that helps you sync firebase collections with Algolia very easily.

TO BE USED IN A FIREBASE CLOUD FUNCTION INDEX.JS FILE

// CURRENT FILE: index.js of a firebase cloud function.

import * as SyncCollectionWithAlgolia from 'firebase-algolia-sync';
    // OR
const SyncCollectionWithAlgolia = require('firebase-algolia-sync');


const options = {
    ALGOLIA_ID: 'YOUR_ALGOLIA_ID',
    ALGOLIA_ADMIN_KEY: 'YOUR_ALGOLIA_ADMIN_KEY',
}

module.exports = {
    ...SyncCollectionWithAlgolia('myCollectionName', options)
};

the SyncCollectionWithAlgolia fucntion returns function which hook into onCreate, onUpdate and onDelete operations on a collection via the firebase could funciton API.

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago