Skip to content
Browse files

add usage and npm instalation

  • Loading branch information...
1 parent 76215e8 commit 2c3436400cb08ae55151c5ed1da5a36ba5ca57c3 @pedrosnk committed
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.md
View
16 README.md
@@ -4,6 +4,22 @@ ELASTICO
Elastico is an API to easialy connect a node application with
elastic search.
+USAGE
+-----
+Install it
+
+ npm install elastico
+
+Use on your projects
+
+```js
+var Elastico = require('elastico').Elastico;
+var client = new Elastico();
+client.getIndex('my_index','my_type', 'my_key', function(data){
+ console.log(data);
+};
+```
+
REFERENCE
---------

0 comments on commit 2c34364

Please sign in to comment.
Something went wrong with that request. Please try again.