UI template for om, mesh, and core.async
A UI template (and reference app) built on Om, with modular components, router, async event handling, and responsive design with an emphasis on using Clojurescript all the way.
lein new mala chant
cd chantThe generated src looks like this:
src
├── layout
│ ├── grid.clj
│ ├── index.clj
│ └── typography.clj
└── ui
├── client.cljs
├── components
├── .cljs
├── .cljs
├── router.cljs
├── state.cljs
├── types.cljs
└── utils.cljs
├── core.cljs
env
└── dev
├── mock.clj
└── repl.cljs
└── debug.cljsStart figwheel, watch garden, and a figwheel server integrated with mock router:
lein devOpen http://localhost:3449/ and look for a Cljs brepl on the prompt.
Emacs Cider users can start a repl with the following commands
M-x cider-connect
localhost
7888
(at the prompt ...)
(use 'figwheel-sidecar.repl-api)
(cljs-repl)Ready to deploy? Generate an optimized js file
lein releaseFor more info, see the wiki.
A lein-template based on this reference app is under lein. Significant changes
in the project structure and dependencies will be updated both in the reference
app and leiningen template.
For a production-ready Ring server template for building tiny services, see my other template, ring-micro.
A big thanks to @swannodette for Om, Joel Holbrooks for Garden, and Bhauman for Fighweel. Some code samples were copied from:
Copyright © 2016 Priyatam Mudivarti.
Released under the Eclipse Public License, same as Clojure.
No open issues yet, or sync has not completed.