All Projects → krisajenkins → Petrol

krisajenkins / Petrol

Licence: epl-1.0
A simple event-handling framework for ClojureScript projects.

Programming Languages

clojure
4091 projects

Petrol

Petrol is a library to help you build ClojureScript webapps. It concentrates on being Functional, and if that leads to being Reactive, well, that's just fine too.

Clojars Project

Build Status

About

Documentation is on its way. In the meantime, my talk at ClojureExchange 2015 will tell you all you need to know.

Running the examples

cd examples
lein figwheel counter counter2 multicounter spotify hydra pages

Then open http://localhost:3449

Developing

Developing a standalone library is a bit of a pain. The solution I like is to use the library as an editable-dependency of the examples, like so:

cd examples
mkdir checkouts
ln -s .. checkouts/
lein figwheel

Now you should be able to edit the library, and the examples that demostrate its use, as one live project.

Troubleshooting

If you get this exception when running lein:

clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate cljs/analyzer__init.class or cljs/analyzer.clj on classpath: , compiling:(figwheel_sidecar/utils.clj:1:1)

Try upgrading leiningen to version 2.5.3+

lein upgrade

Contributors

With thanks to...

License

Copyright © 2015 Kris Jenkins

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

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].