Planjure
Path-planning algorithms and demo in ClojureScript, using Om and core.async.
Or, a self-study in Clojure, ClojureScript, Om and core.async.
Go here for a live version (possibly out-of-date): http://elbenshira.com/p/planjure.
Development
# Build .cljx files into target/generated-src
lein cljx auto
# Build cljs files from src/cljs and target/generated-src
lein cljsbuild auto dev
Then, modify index.html
. Remove this line:
<script src="planjure.min.js" type="text/javascript"></script>
And add:
<script src="http://fb.me/react-0.11.1.js"></script>
<script src="out/goog/base.js" type="text/javascript"></script>
<script src="planjure.js" type="text/javascript"></script>
<script type="text/javascript">goog.require("planjure.demo");</script>
Running tests:
lein test
# cljs tests (not working yet)
lein do cljsbuild once test, cljsbuild test
Deploying
lein cljx
lein cljsbuild once release
Then, modify index.html
. Remove these lines:
<script src="http://fb.me/react-0.11.1.js"></script>
<script src="out/goog/base.js" type="text/javascript"></script>
<script src="planjure.js" type="text/javascript"></script>
<script type="text/javascript">goog.require("planjure.demo");</script>
And add this line:
<script src="planjure.min.js" type="text/javascript"></script>
To deploy statically somewhere, make sure to include these files:
index.html
planjure.min.js
resources/