/clojunto

An Example Application for the "Poor Man's Datomic"

Primary LanguageClojure

clojunto

A reagent application designed to ... well, that part is up to you.

Development Mode

cljs-devtools

To enable:

  1. Open Chrome's DevTools,Ctrl-Shift-i
  2. Open "Settings", F1
  3. Check "Enable custom formatters" under the "Console" section
  4. close and re-open DevTools

Start Cider from Emacs:

Put this in your Emacs config file:

(setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))")

Navigate to a clojurescript file and start a figwheel REPL with cider-jack-in-clojurescript or (C-c M-J)

Compile css:

Compile css file once.

lein less once

Automatically recompile css file on change.

lein less auto

Run application:

lein clean
lein figwheel dev

Figwheel will automatically push cljs changes to the browser.

Wait a bit, then browse to http://localhost:3449.

Devcards

lein clean
lein figwheel devcards

Figwheel will automatically push cljs changes to the browser.

Wait a bit, then browse to http://localhost:3449/cards.html.


To build a minified version:

lein clean
lein cljsbuild once hostedcards

Then open resources/public/cards.html

Production Build

lein clean
lein cljsbuild once min