productscience / witan.ui

Witan Frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Witan.UI

 _    _ _ _               _   _ _____
| |  | (_) |             | | | |_   _|
| |  | |_| |_ __ _ _ __  | | | | | |
| |/\| | | __/ _` | '_ \ | | | | | |
\  /\  / | || (_| | | | || |_| |_| |_
 \/  \/|_|\__\__,_|_| |_(_)___/ \___/

Overview

This is the frontend application that powers Witan, the open city planning tool, using...

ClojureScript
Om
Sablono
Figwheel
Secretary
Schema
Datascript
Garden

To Develop

To get an interactive development environment run:

lein figwheel ui login

and open your browser at localhost:3449 This will auto compile and send all changes to the browser without the need to reload. After the compilation process is complete, you will get a Browser Connected REPL. An easy way to try it is:

(js/alert "Am I connected?")

and you should see an alert in the browser window.

In a separate terminal, run:

lein garden auto

This will update any chances to CSS styles (in the styles directory) and figwheel will automatically apply them.

To clean all compiled files:

lein clean

To create a production build run:

lein cljsbuild once prod-ui
lein cljsbuild once prod-login

And open your browser in resources/public/index.html. You will not get live reloading, nor a REPL.

License

Copyright © 2014 Mastodon C

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Witan Frontend


Languages

Language:Clojure 92.8%Language:HTML 7.0%Language:Shell 0.2%