All Projects β†’ elben β†’ Planjure

elben / Planjure

🏁Path-planning algorithms (Dijkstra, A*, etc); a study in ClojureScript, Om and core.async.

Programming Languages

clojure
4091 projects

Planjure

Build Status

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.

Planjure screenshot

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/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].