Skip to content

Commit 995026f

Browse files
committed
Make httpkit runnable like the jetty example
1 parent 8aef5af commit 995026f

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

examples/hello-httpkit/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# A Datastar + http-kit starter
22

3-
For development,
3+
## Running the example
44

5-
1. Start a REPL
6-
2. Run the `start!` function in `hello_httpkit.clj`.
5+
- repl:
6+
7+
```
8+
clojure -M:repl -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
9+
```
10+
11+
- main:
12+
13+
```
14+
clojure -M -m hello-httpkit
15+
```

examples/hello-httpkit/deps.edn

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
dev.data-star.clojure/sdk {:local/root "../../sdk"}
55
dev.onionpancakes/chassis {:mvn/version "1.0.365"}
66
http-kit/http-kit {:mvn/version "2.8.1"}
7-
metosin/reitit {:mvn/version "0.7.2"}}}
7+
metosin/reitit {:mvn/version "0.7.2"}}
8+
:aliases
9+
{:repl {:extra-deps {org.clojure/clojure {:mvn/version "1.12.0"}
10+
nrepl/nrepl {:mvn/version "1.3.0"}
11+
cider/cider-nrepl {:mvn/version "0.50.2"}}}}}

0 commit comments

Comments
 (0)