A simple tools-deps project for clojurescript training. Includes :
- shadow-cljs for packaging and dev tools
- reagent as react wrapper
- tailwindcss for design system
To launch a watcher which hot reload your code, just type
clj -A:shadow-cljs watch app
and go to http://localhost:3000
To setup cursive REPL for cljs, you need to create an nREPL connected to shadow-cljs REPL as remote.
- Run -> Run... -> Edit Configurations... -> + -> Clojure REPL -> Remote
- Connect to server -> host localhost -> port 9000
- Launch your app with
clj -A:shadow-cljs watch app
then go tolocalhost:3000
- Launch your REPL and type
(shadow/repl :app)
- you can now evaluate forms in cursive REPL and interact with browser