Files
elasticsearch-js/dsl/examples/README.md
2020-09-02 16:26:52 +02:00

18 lines
473 B
Markdown

# Examples
In this folder you will find different examples to show the usage of the DSL.
## Instructions
Befoire to run any of the examples in this folder you should run `npm install` for installing all the required dependenices and the run the `loadRepo` script.
## Run an example
Running an example is very easy, you just need to run the following command:
```sh
npm run example examples/<filename>
```
For example:
```sh
npm run example examples/last-commits.ts
```