Skip to content

mmmanyfold/this-machine-has-a-soul

Repository files navigation

This Machine Has A Soul

A re-frame application.

Development Mode

Compile css:

Compile css file once.

lein less once

Automatically recompile css file on change.

lein less auto

Run application

lein clean
lein figwheel dev

Run contentful-graphql server

cd contentful
npm start

Graphql playgrounds

Figwheel will automatically push cljs changes to the browser.

Wait a bit, then browse to http://localhost:3449.

Run tests

lein clean
lein doo phantom test once

The above command assumes that you have phantomjs installed. However, please note that doo can be configured to run cljs.test in many other JS environments (chrome, ie, safari, opera, slimer, node, rhino, or nashorn).

Production Build

lein clean
lein uberjar

That should compile the clojurescript code first, and then create the standalone jar.

To compile clojurescript to javascript:

lein clean
lein cljsbuild once min