Skip to content

Commit

Permalink
Update part3
Browse files Browse the repository at this point in the history
  • Loading branch information
quan-nh committed Feb 22, 2024
1 parent 5aca5bf commit 8d891e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/clj-web-from-the-ground-up-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

add deps
```
[com.stuartsierra/component "0.4.0"]
[com.stuartsierra/component "1.1.0"]
[ring-jetty-component "0.3.1"]
```

Expand All @@ -13,7 +13,7 @@ add deps
(defn app-system
[]
(component/system-map
:http (jetty-server {:app {:handler (wrap-defaults app-routes site-defaults)} :port 3000})))
:http (jetty-server {:app {:handler app}, :port 3000})))

(defn -main
"I don't do a whole lot ... yet."
Expand Down
5 changes: 2 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.11.1"]
[com.stuartsierra/component "0.4.0"]
[com.stuartsierra/component "1.1.0"]
[reloaded.repl "0.2.4"]
; web
[ring/ring-core "1.11.0"]
[ring/ring-jetty-adapter "1.11.0"]
[ring/ring-defaults "0.3.2"]
[ring-jetty-component "0.3.1"]
[metosin/reitit-ring "0.6.0"]
[metosin/reitit "0.6.0"]
[metosin/muuntaja "0.6.4"]
[metosin/ring-http-response "0.9.1"]
; config
Expand Down

0 comments on commit 8d891e6

Please sign in to comment.