Git Product home page Git Product logo

cljs-dashboard-widgets's Introduction

cljs-dashboard-widgets

A library of clojurescript widgets and utility code, intended for use in building developer / metrics dashboards.

Installation

To use this library in your application, simply add this project as a dependency in your leiningen project file:

Clojars Project

Contents

At present the library contains two widgets:

  • metrics-box: A box that displays a line graph of a series of data points (as seen in the PuppetDB dashboard)
  • sortable-table: A simple table, built using the reagent library. Take a list of maps representing your table data, assign it to a reagent atom, and bind the table to the atom. The widget will render the data, with column headers that can be clicked on to re-sort the table. Modifying the value of the atom will cause the table to be updated automatically.

Demo

The project includes a sample app that you can run to see the widgets in action, and to see how to wire them up to a data source on the server.

To run:

  • start a Clojure REPL
  • run (go)
  • run (start-figwheel)
  • open a browser to localhost:8080
    • For the figwheel server, the host should be localhost:3449/metrics.html
$ lein repl

...
Commands:

=> (metrics-help)   ;; prints this message
=> (go)             ;; Starts webserver
=> (reset)          ;; Reloads all clj code and restarts webserver
=> (start-figwheel) ;; starts figwheel, to dynamically
                    ;;  recompile cljs code and send it to
                    ;;  the browser
=> (cljs-repl)   ;; starts cljs repl, may need to reload
                    ;;  browser to attach
user=> (go)
...
user=> (start-figwheel)

Support

We use the Trapperkeeper project on JIRA for tickets on cljs-dashboard-widgets, although Github issues are welcome too.

cljs-dashboard-widgets's People

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.