Clojure CLI tools (with deps.edn) allow for a built in way to create projects.
Official CLI/deps guide: https://clojure.org/guides/deps_and_cli
-
Pre-reqs: Clojure and dependencies installed.
-
Install a project creation Tool.
clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new
-
Create a project directory structure
clj -Tnew app :name mygituser/myappname
-
Run tests or build.
clj -T:build test # Test only. clj -T:build ci # Test, write pom, build uberjar.
-
Run the app's '-main' function.
clj -M:run-m