Skip to content
A sample Clojure CLI project containing Clojure and ClojureScript
Clojure HTML CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/public Use figwheel-main and change project structure Feb 15, 2019
src/full_stack_clj_example Use figwheel-main and change project structure Feb 15, 2019
.gitignore Improve read-deps-edn fn and change target dir Mar 23, 2019
README.md
deps.edn Use :main-opts to save some typing Aug 2, 2019
dev.clj Split up dev and prod build scripts Feb 16, 2019
dev.cljs.edn Improve read-deps-edn fn and change target dir Mar 23, 2019
figwheel-main.edn
prod.clj Improve read-deps-edn fn and change target dir Mar 23, 2019
project.clj Remove lein-tools-deps Feb 16, 2019

README.md

This is a sample project that demonstrates how to create a full stack (Clojure + ClojureScript) project using the Clojure CLI tool. With clj -A:cljs:dev, you can instantly see your project at http://localhost:3000/ and any edits to the ClojureScript will be automatically pushed to the browser. With clj -A:cljs:prod, you can make a standalone jar file that includes your entire client and server code. The prod command works by programmatically using Leiningen to build an uberjar. It works even if Leiningen is not installed on your system!

Development

  • Install the latest JDK
  • Install the Clojure CLI tool
  • Develop with clj -A:cljs:dev
  • Build JAR file with clj -A:cljs:prod

Contents

  • resources The assets
  • src/full_stack_clj_example/core.clj The server-side code
  • src/full_stack_clj_example/core.cljs The client-side code
  • src/full_stack_clj_example/utils.cljc The client and server agnostic code
You can’t perform that action at this time.