1.0.7 • Published 4 years ago

firebase-algolia-sync v1.0.7

Weekly downloads
10
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago