sooheon/boot-gorilla
library. A sample boot task is shown below.#!/usr/bin/env bootStart the Gorilla-REPL using
(set-env!
:source-paths #{"src" "test"}
:resource-paths #{"resources"}
:dependencies '[[org.clojure/clojure "1.9.0"]
[sooheon/boot-gorilla "0.1.1-SNAPSHOT"]])
(require '[sooheon.boot-gorilla :refer [gorilla]])
(deftask grepl []
(gorilla :port 8002 :ip "127.0.0.1" :block true))
boot grepl
and we will see something similar as below.Gorilla-REPL: 0.4.1-SNAPSHOTNavigate to
Started nREPL server on port 52660
Running at http://127.0.0.1:8002/worksheet.html .
Ctrl+C to exit.
<< started Gorilla REPL on http://127.0.0.1:8002 >>
http://127.0.0.1:8002/worksheet.html
to see the Clojure notebook. Required dependencies can be added to the boot build script, which will be available in the worksheet. Worksheets are saved as Clojure code. We can use gorilla-repl viewer to view these file online. Sample workbook, fibonacci.clj.Full code added to codebook repo at GitHub.