This is a sample project that demonstrates how to create a full stack (Clojure + ClojureScript) project using the Boot build tool. With boot run
, you can instantly see your project at http://localhost:3000/ and any edits to the ClojureScript will be automatically pushed to the browser. With boot build
, you can make a standalone JAR file that includes your entire client and server code. It also contains a project.clj file so it can be built with Leiningen as well.
- Install the latest JDK
- Install Boot or Leiningen
- Develop with Boot:
boot run
- Develop with Leiningen:
lein cljsbuild auto
andlein run
(in separate terminals) - Build JAR file with Boot:
boot build
- Build JAR file with Leiningen:
lein cljsbuild once && lein uberjar
resources
The assetssrc/clj
The server-side codesrc/cljc
The client and server agnostic codesrc/cljs
The client-side code