diff --git a/README.md b/README.md index e2c05dc..56866cf 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ Semantic knowledge base #### mac 1. install java 8+ -2. install git +2. install git (for cloud editors) * set merge strategy for the repo: ``` git config pull.rebase false ``` -* set git email and username +* set git email and username (for cloud editors) ``` git config user.name "editor name" git config user.email "editor@zendoc.me" @@ -31,14 +31,15 @@ brew install clojure/tools/clojure clojure -M:run ``` -### run with babashka +### run with clojure repl ``` -bb run +clojure -M:nrepl ``` +* start zd with (zd.core/start nil false) + +### run as java jar ### getting started Open http://localhost:4444 - -start with Zendoc Tutorial document diff --git a/deps.edn b/deps.edn index 2fa0e16..3c61147 100644 --- a/deps.edn +++ b/deps.edn @@ -29,6 +29,10 @@ :jvm-opts ["-XX:-OmitStackTraceInFastThrow"] :main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]} + :run + {:jvm-opts ["-XX:-OmitStackTraceInFastThrow"] + :main-opts ["-m" "zd.core"]} + :kaocha {:extra-deps {lambdaisland/kaocha {:mvn/version "1.77.1236"}} :extra-paths ["test"] diff --git a/src/zd/core.clj b/src/zd/core.clj index f78827b..5cd072b 100644 --- a/src/zd/core.clj +++ b/src/zd/core.clj @@ -213,6 +213,9 @@ (defn stop [ztx] (zen/stop-system ztx)) +(defn -main [& opts] + (start nil false)) + (comment (def ztx (start nil true))