Skip to content

elben/planjure

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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/

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published