-
Notifications
You must be signed in to change notification settings - Fork 54
Getting Started
Dimitrios Zorbas edited this page Apr 27, 2017
·
7 revisions
The easiest way to get started with Kitto is to use the installer.
See: https://github.com/kittoframework/kitto#installation on how get the installer.
Run the installer
mix kitto.new <your_dashboard>Jump to the created directory for your dashboard
cd <your_dashboard>If you chose not to fetch dependencies during installation you can get them with:
mix deps.get # Elixir dependencies
npm install # JavaScript dependenciesStart the server
mix kitto.serverChanges made to your assets will be reflected immediately by Webpacks' hot-module-replacement
The dashboard created with the installer comes with 2 sample dashboards.
- http://localhost:4000/dashboards/sample (Showcases various widgets)
- http://localhost:4000/dashboards/jobs (Displays internal stats about jobs)
The directory setup is:
-
assets— All your js,stylesheets to be used in your dashboards. Consultwebpack.config.jsto see how they're loaded. -
dashboards— One .html.eex file for each dashboard. -
jobs— Definitions on data retrieval actions. Their role is to provide data for the widgets. -
lib— Elixir modules to be used by your jobs. -
widgets— All the html/scss/js for individual widgets.
Below you can find a series of blog posts by @davejlong and @zorbash to help you make your first steps with Kitto.