From c9438da8ec8b8574cd4174c1e017cfb7c41cdb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Sun, 9 Aug 2020 21:44:40 +0300 Subject: [PATCH] Updated docs --- .gitignore | 4 ++ DOCUMENTATION.md | 1 + LICENSE | 2 +- README.md | 122 +++++++++++++++++++++++++++++++++++++++++++++- package-lock.json | 2 +- package.json | 2 +- 6 files changed, 128 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 61f2900..2ca2591 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,7 @@ *~ *.log node_modules +*.env +.DS_Store +package-lock.json +.bloggify/* diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 17073db..3b1af83 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -6,6 +6,7 @@ You can see below the API reference of this module. Creates a new instance of `ElasticFire`. #### Params + - **Object** `config`: An object containing the following fields: - paths (Array): An array of objects to configure the way how the data is taken from Firebase: diff --git a/LICENSE b/LICENSE index 97d3aa8..9fe7574 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-16 Bloggify (https://bloggify.org) +Copyright (c) 2013-20 Bloggify (https://bloggify.org) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 26372a9..1a2650e 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,83 @@ + + + + + + + + [![elasticfire](https://i.imgur.com/WnGtDhC.png)](#) + + + + + + + + + + # elasticfire [![Version](https://img.shields.io/npm/v/elasticfire.svg)](https://www.npmjs.com/package/elasticfire) [![Downloads](https://img.shields.io/npm/dt/elasticfire.svg)](https://www.npmjs.com/package/elasticfire) + + + + + + > A flexibe and configurable module to connect Firebase with Elasticsearch. + + + + + ## :rocket: Features + - Easily configure the way how the data should be taken from Firebase - Filter out documents - Include and exclude specific fields - Support for joins + + + + + + + + + + + ## :cloud: Installation ```sh -$ npm i --save elasticfire +# Using npm +npm install --save elasticfire + +# Using yarn +yarn add elasticfire ``` + + + + + + + + + + + ## :clipboard: Example @@ -87,6 +143,29 @@ ef.on("error", err => { }); ``` + + + + + + + + + + +## :question: Get Help + +There are few ways to get help: + + + + 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question. + 2. For bug reports and feature requests, open issues. :bug: + + + + + ## :memo: Documentation @@ -94,6 +173,7 @@ ef.on("error", err => { Creates a new instance of `ElasticFire`. #### Params + - **Object** `config`: An object containing the following fields: - paths (Array): An array of objects to configure the way how the data is taken from Firebase: @@ -129,18 +209,56 @@ Triggers the search in Elasticsearch. + + + + + + + + + + + ## :yum: How to contribute Have an idea? Found a bug? See [how to contribute][contributing]. + + + + + + + + ## :cake: Thanks [`flashlight`](https://github.com/firebase/flashlight) was the main inspiration for this project. :cake: + + + + + + + + + + + + + + ## :scroll: License [MIT][license] © [Bloggify][website] -[license]: http://showalicense.com/?fullname=Bloggify%20%3Csupport%40bloggify.org%3E%20(https%3A%2F%2Fbloggify.org)&year=2013#license-mit + + + + + +[license]: /LICENSE [website]: https://bloggify.org [contributing]: /CONTRIBUTING.md [docs]: /DOCUMENTATION.md diff --git a/package-lock.json b/package-lock.json index f0dc73a..a728b19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "elasticfire", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5e9b8b2..b71bbaa 100644 --- a/package.json +++ b/package.json @@ -54,4 +54,4 @@ "thanks": "[`flashlight`](https://github.com/firebase/flashlight) was the main inspiration for this project. :cake:" }, "author": "Bloggify (https://bloggify.org)" -} \ No newline at end of file +}