Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Kibana 5.0

You're reading from   Learning Kibana 5.0 Exploit the visualization capabilities of Kibana and build powerful interactive dashboards

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781786463005
Length 284 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Bahaaldine Azarmi Bahaaldine Azarmi
Author Profile Icon Bahaaldine Azarmi
Bahaaldine Azarmi
Arrow right icon
View More author details
Toc

Diving into Timelion code


Understanding how a Kibana plugin is structured is essential to tackle the development of extensions. This is what we'll look at first before diving into the Timelion function's code.

Understanding the Kibana plugin structure

A Kibana plugin is fundamentally an Angular application; it follows a specific structure, that is, a layout, as shown next:

public 
app-logo.png
app.js server
api.js
index.js
gulpfile.js
package.json
README.md
  • The public folder contains all the public files that will be served to the user's browser, except the app.js file, which is used to load the following:

    • All the application UI components and libraries

    • All the routes that the backend API will serve

  • The server folder contains all the backend files, which implement the API called by the front end code. Typically, the routes defined in the app.js file will point to that API. Note that this folder could have a different name.

  • The index.js file is used to bootstrap the application and essentially...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image