This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-12
Channels
- # adventofcode (112)
- # architecture (1)
- # beginners (55)
- # boot (26)
- # cider (19)
- # cljs-dev (19)
- # cljsjs (1)
- # cljsrn (7)
- # clojure (140)
- # clojure-android (3)
- # clojure-austin (3)
- # clojure-china (3)
- # clojure-gamedev (1)
- # clojure-greece (43)
- # clojure-spec (75)
- # clojure-sweden (5)
- # clojure-uk (21)
- # clojurescript (66)
- # core-async (2)
- # core-logic (1)
- # cursive (63)
- # datascript (5)
- # datomic (4)
- # devcards (2)
- # duct (13)
- # editors (5)
- # emacs (9)
- # figwheel (4)
- # fulcro (42)
- # graphql (25)
- # immutant (7)
- # jobs (29)
- # leiningen (13)
- # lumo (7)
- # numerical-computing (3)
- # off-topic (22)
- # om (2)
- # onyx (25)
- # pedestal (3)
- # re-frame (14)
- # reagent (20)
- # remote-jobs (1)
- # ring-swagger (3)
- # rum (12)
- # shadow-cljs (9)
- # uncomplicate (1)
- # unrepl (6)
I'm following weavejester's blog post at https://www.booleanknot.com/blog/2017/05/29/building-web-services-with-duct.html
but got this No implementation of method: :write-body-to-stream of protocol: #'ring.core.protocols/StreamableResponseBody found for class: clojure.lang.PersistentHashMap
the response code for my http handler is [::response/ok (fetch-thing db 1)]
what am I missing?
that blog post is a bit outdated, try the new and more complete one https://github.com/duct-framework/docs/blob/master/GUIDE.rst
thanks, the docs is clear
Duct is the best dev experience I've ever had. Thank you so much James!
Is there a way to override the default port of 3000 for duct?
sure env PORT=8080 lein repl
or adding to your duct config: {:duct.server/http {:port 8080}}
(I think - not tested - YMMV)….
See here @yogidevbear: https://github.com/duct-framework/module.web/blob/master/src/duct/module/web.clj#L28
Thanks @rickmoynihan 👍 Will test a little later. Ended up closing one of my other processes that was running on 3000 to keep going
You’re welcome, @myguidingstar. The guide isn’t finished yet so I haven’t linked it anywhere officially, but once I have users and authentication done, I’ll add it to the Duct README and also add in a repository for the test project.