mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 09:28:27 +00:00
1.1 KiB
1.1 KiB
Development Environment Setup
-
You must have first setup Kibana by following their contributing docs.
-
Next esvm is strongly suggested simply
npm install -g esvm
-
Clone and go into this project
git clone https://github.com/elastic/elasticsearch-marvel.git && cd elasticsearch-marvel
- Install dependencies
npm install
-
Start it up
- Start Elasticsearch, with esvm
esvm --branch <target version>
or traditionally withbin/elasticsearch
. - Start up the mock Marvel agent with
gulp index
. - Start up the filesystem watching of Marvel code and syncing to Kibana's plugin directory with
gulp dev
. - Finally, startup Kibana by running
bin/kibana --dev
from the root of the Kibana project.
- Start Elasticsearch, with esvm
-
Check it out, navigate to your Kibana App
-
Run tests
gulp test
- Debug tests
Add a
debugger
line to create a breakpoint, and then:
gulp sync && mocha debug --compilers js:babel/register /pathto/kibana/installedPlugins/marvel/pathto/__test__/testfile.js