https://github.com/1amageek/dressing
Dressing provides the functionality of CloudFunctions to connect Firebase and ElasticSearch. You need to use Salada for clients.
https://github.com/1amageek/dressing
cloudfunctions elasticsearch firebase
Last synced: 5 months ago
JSON representation
Dressing provides the functionality of CloudFunctions to connect Firebase and ElasticSearch. You need to use Salada for clients.
- Host: GitHub
- URL: https://github.com/1amageek/dressing
- Owner: 1amageek
- License: mit
- Created: 2017-08-25T03:08:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T10:25:37.000Z (over 8 years ago)
- Last Synced: 2025-08-05T03:39:48.510Z (5 months ago)
- Topics: cloudfunctions, elasticsearch, firebase
- Language: JavaScript
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dressing
Dressing provides the functionality of CloudFunctions to connect Firebase and ElasticSearch. You need to use Salada for clients.
# Installation
`$ npm install dressing`
# Usage
To set the needed firebase config variables we use the Firebase CLI functions:config:set command:
`$ firebase functions:config:set elasticsearch.username="user" elasticsearch.password="your_password" elasticsearch.url="http://0.0.0.0/elasticsearch/"`
``` index.js
const functions = require('firebase-functions');
const Dressing = require('dressing');
const dressing = new Dressing(functions);
/**
Elasticsearch
*/
// PUT a user class to ElasticSearch
exports.indexUserToElastic = dressing.put('user')
```
# Reference
- [Salada](https://github.com/1amageek/Salada) Firebase model framework.
- [Tong](https://github.com/1amageek/Tong) Tong is library for using ElasticSearch with Swift.
- [dressing](https://github.com/1amageek/dressing) Dressing provides the functionality of CloudFunctions to connect Firebase and ElasticSearch.