I'm learning to use clojure+clojurescript together. The history of this repo shows where I started, and the steps I've taken along the way.
- git clone https://github.com/moquist/stacker
- cd stacker
- lein deps
- lein run
- Switch to a separate terminal (henceforth "term2").
- cd stacker
- lein trampoline cljsbuild repl-listen
- Highly recommended -- use rlwrap for readline features in your bREPL: rlwrap lein trampoline cljsbuild repl-listen
- Switch to your browser.
- http://localhost:4001/app
- Open up the javascript console.
- Switch back to your term2 (from above).
- (.log js/console "hi there")
Your console log entry should appear in ... your console log. You're bREPLing! (For more on using the bREPL, see https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-02.md)
Copyright © 2013 Matt Oquist moquist@majen.net
Distributed under the Eclipse Public License, the same as Clojure.