MastodonC / kixi.hecuba

Eclipse Public License 1.0
36 stars 5 forks source link

Hecuba

A data platform built with Clojure, ClojureScript, core.async, Om, Cassandra and other technologies.

Build Status

Build Status

Usage

To start the server, clone the repo, and then lein repl or cider-jack-in as you prefer

(go)

When you make changes just reset.

(reset)

Then you'll need to compile the clojurescipt. That can be done with cljsbuild like this

lein cljsbuild auto hecuba

This will recompile your clojurescript each time you save. The server app needs to be bounced by doing reset as above.

If you pull from github, you'll still probably want to restart your nrepl session though.

You can now access the Hecuba frontend by navigating to:

http://localhost:8010

To clean the build do:

lein clean

This will delete both clj and cljs from target and out directories.

You can also use figwheel: Instead of running lein cljsbuild auto hecuba and reloading the website, update project.clj to have this:

:env {:is-dev true}

and run:

lein figwheel hecuba

Each time you save your cljs files, figwheel will recompile and refresh the website for you.

Environment should be set to {:is-dev false} before deployment to the server. For production deployment please compile once:

lein cljsbuild once hecuba

To run Clojure tests do:

lein test

To run ClojureScript tests:

lein cljsbuild test

Dev environment

We are using Vagrant to manage dev environments.

The goal of the Vagrant setup is to provide, in a simple 'black box' that just works™, all the services that you need to run hecuba.

You shouldn't need to login to the vagrant box at all, everything is forwarded outside the box.

You will still run your hecuba instance local to your machine (not in the vagrant box).

First Time Test Data

On your machine (not the vagrant box):

Back on your host machine do the following:

Support

Hecuba is a new project which is being developed 'in the open'. Therefore it may not work exactly as described in these notes. Hecuba is not (yet) a released and supported code-base, rather it is being made available for others as a learning aid. Please bear this in mind when contacting the team, raising issues and submitting pull requests.

References

License

Copyright © 2014 Mastodon C Ltd

Distributed under the Eclipse Public License version 1.0.