-
Install dependencies
- Install node.js.
- Install react via
npm install react react-dom
. - Install shadow-cljs via
npm install --save-dev shadow-cljs
and/ornpm install -g shadow-cljs
.
-
Run
npx shadow-cljs clj-run ecological.build/build-assets nil "resources/assets"
to build the asset resources directory. -
Run
npx shadow-cljs server
to get a repl server.- Open http://localhost:9630/ and enable
Build > Watch
to activate the compilation.- If it fails, click on the red dot to see the compile log.
- Open a browser (to http://localhost:8020 by default)
- And then use nREPL to connect to it, if you want.
- Open http://localhost:9630/ and enable
Can also run it with lein or deps but I haven't configured that here yet and you miss out on the shadow-server recompile watch. Might do it anyway to be able to use git-repo-versions of libraries.
In emacs: M-x cider-connect-cljs
hostname: localhost
socket: 3333
type: shadow
build: eco