Skip to content

Commit

Permalink
upd installation flow
Browse files Browse the repository at this point in the history
  • Loading branch information
carbon-hvze committed Nov 8, 2023
1 parent a28d317 commit db34e79
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
Expand All @@ -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
4 changes: 4 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions src/zd/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@
(defn stop [ztx]
(zen/stop-system ztx))

(defn -main [& opts]
(start nil false))

(comment
(def ztx (start nil true))

Expand Down

0 comments on commit db34e79

Please sign in to comment.