A Leiningen template for creating OM projects compatible with an nREPL compliant editors/IDEs.
Start by creating a new OM project based on om-start lein-template.
lein new om-start om-tutThen open the generated core.cljs file in Emacs from the
src/cljs/om-tut directory and run the C-c M-j shortcut (or M-x cider-jack-in).
The command needs sometime to download dependencies and plugins, to compile the ClojureScript code and to run the nREPL server and client. So, be patient the very first time.
Once the nREPL is ready, evaluate the following Clojure forms:
(run) ; to run the included http serverand then
(browser-repl) ; to run the Browser Connected REPLFinally, visit the http://localhost:3000 URL to activate the Browser
Connected REPL.
You're now ready to follow the David Nolen Tutorial on OM
with the same kind of live experience he reached with
Light Table.
Evaluate core.cljs file form by form starting from the namespace
declaration. To do that just position your cursor at the end of each
form and type C-c C-e.
Start CCW by Laurent Petit and create a new Clojure Project based on the om-start lein-template.
New > Clojure Project
Project Name: om-tut
Leiningen teamplate: om-startFrom the contextual menu of the project select Run as > Clojure Application.
The command needs sometime to compile the ClojureScript code and to run the nREPL server and client. So, be patient.
Once the nREPL is ready, evaluate the (run) form to start the
included http server.
Then start the Browser Connected REPL by evaluating the
(browser-repl) form.
When ready, visit the http://localhost:3000 URL to activate the
ClojureScript REPL and you are ready to follow the David Nolen
Tutorial on OM.
Open the core.cljs source code in the editor and evaluate it form by
form starting from the namespace declaration.
Requires vim-fireplace.
Start by creating a new OM project based on om-start lein-template and
launching the repl.
lein new om-start om-tut
cd om-tut
lein repllein repl will require some time to download dependencies and compile the
ClojureScript code. Once the nREPL is ready, evaluate the following Clojure
forms:
(run) ; to run the included http server server.Then open the generated core.cljs file in Vim from the
src/cljs/om-tut directory and enter the command
:Piggieback (browser-repl-env)Finally, visit the http://localhost:3000 URL to activate the Browser
Connected REPL.
You're now ready to follow the David Nolen Tutorial on OM
with the same kind of live experience he reached with
Light Table.
Evaluate core.cljs file form by form starting from the namespace
declaration. To do that just position your cursor at the end of each
top-level form and type cpp.
ATTENTION NOTE:
om-startdoes not use:noneoptimization and this is because austin does not support it.
Copyright © 2014 Mimmo Cosenza (aka @magomimmo)
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.