This web template is based on clj-new can run common tasks (as Leiningen):
-
build jar, uberjar
-
compile java sources,
-
build standalone apps (using jlink)
-
create pom,
-
sign jar file
-
local install to .m2
-
deploy jar to clojars
-
run tests using kaocha
See also:
Warning: tested on Mac & linux.
-
Install latest clj-new (0.8.6+) from https://github.com/seancorfield/clj-new as :new alias to ~/.clojure/deps.edn.
-
(optional) Clone this repo to your local folder (e.g. ~/projects/web-template)
-
Create new project from local template (step 2 is required):
$ clj -A:new ~/projects/web-template::web-template my.example/webapp01or, create new project from Github template:
$ clj -A:new https://github.com/redstarssystems/web-template@f684753954a5b96ed293e4f2a2053d89d9a12545 my.example/webapp01 -
Follow the README.adoc in root project folder.