Giter Club home page Giter Club logo

farmhand-ui's Introduction

Farmhand UI

Farmhand UI is a web interface for Farmhand, with features like:

  • See all of your queues with how many jobs are pending for each of them
  • Drop all pending jobs from your queues
  • View lists of pending, scheduled, completed, and failed jobs
  • Get details on individual jobs, like what function was called with what arguments, what its status is, etc.

Table of Contents generated with DocToc

Installation

Leiningen:

[com.buckryan/farmhand-ui "0.3.1"]

Usage

This library is meant to be use within an existing application running Farmhand. This is not necessary, however, and you are free to run it in a separate process. For now, we will assume you are going to run it inside your existing application.

The farmhand.ui.handler namespace contains one main function for creating a handler that can be used with Jetty, HTTP Kit, etc. Here is what the basic code will look like to create an app:

(ns my.namespace
  (:require [farmhand.core :as farmhand]
            [farmhand.ui.handler :as farmhand-ui]))

;; Start the Farmhand server before creating the handler
(farmhand/start-server)

;; Now create the handler
(def handler (farmhand-ui/app))

;; Now you need to start an HTTP server. See the notes below depending on the
;; server you are using.

Jetty

;; Using the handler created above,
(ring.adapter.jetty/run-jetty handler {})

See more details on run-jetty here.

HTTP Kit

;; Using the handler created above,
(org.httpkit.server/run-server handler)

More documentation can be found here.

Screenshot

Screenshot

farmhand-ui's People

Contributors

b-ryan avatar

Watchers

James Cloos avatar Thiago Dantas 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.