Giter Site home page Giter Site logo

barseghyanartur / template-kibana-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elastic/template-kibana-plugin

0.0 3.0 0.0 37 KB

sao.js template for kibana plugins

License: Apache License 2.0

JavaScript 96.48% CSS 0.27% HTML 3.25%

template-kibana-plugin's Introduction

template-kibana-plugin

Apache License Build Status

This project is an sao.js template for bootstrapping a Kibana Plugin. It creates a basic hello world Kibana plugin with all the elements in place so you can easily get started with creating your first Kibana plugin.

Compatibility

Generator Version Min Kibana Version Max Kibana Version
^7.0.1 5.5.0 master
^6.2.2 5.0.0 5.4.x

Getting Started

Setup your Kibana development enviroment

You can find instructions on the Kibana development documentation

Double check that your Node.js version matches Kibana's .node-version file

node --version

HINT: If you install nvm and avn then you can create your own .node-version file and avn will switch to it automatically!

Create a directory for your plugin that is right next to your Kibana directory.

The Kibana directory must be named kibana, and your plugin directory must be a sibling directory

ls ~/wherever/you/store/your/code
  kibana # <- where you store the Kibana development environment
  my-new-plugin # <- your plugin directory

Install SAO

npm install -g sao

Run the generator

cd my-new-plugin
sao kibana-plugin

HINT: If you need to use a version other than the latest, you can specify it when you run the template:

# SAO will install [email protected]
sao [email protected]

[Optional] Get the URL for your Elasticsearch installation

Elasticsearch is available at http://localhost:9200, unless you explicitly changed it in the Elasticsearch config.

Start Kibana in development mode with your new plugin included

npm start

HINT: If your Elasticsearch instance is running on another port, you can pass it in here.

npm start -- --elasticsearch.url 'http://localhost:9200'

# passing the elasticsearch.url here is to demonstrate how arguments can
# be passed to kibana with `npm start` but is not actually necessary if
# you are running elasticsearch locally

Open your Kibana instance

Visit http://localhost:5601 with your web browser of choice.

Development Tasks

  • npm start

    Start kibana and have it include this plugin

  • npm start -- --config kibana.yml

    You can pass any argument that you would normally send to bin/kibana by putting them after -- when running npm start

  • npm run build

    Build a distributable archive

  • npm run test:browser

    Run the browser tests in a real web browser

  • npm run test:server

    Run the server tests using mocha

For more information about any of these commands run npm run ${task} -- --help.

template-kibana-plugin's People

Contributors

w33ble avatar egoist avatar eng618 avatar

Watchers

James Cloos avatar Artur Barseghyan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.