This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-03
Channels
- # aleph (1)
- # beginners (42)
- # boot (34)
- # cider (157)
- # cljs-dev (12)
- # cljsrn (3)
- # clojure (165)
- # clojure-conj (1)
- # clojure-india (1)
- # clojure-italy (6)
- # clojure-russia (20)
- # clojure-spec (27)
- # clojure-uk (173)
- # clojurescript (116)
- # cursive (30)
- # datomic (87)
- # devcards (1)
- # docs (9)
- # emacs (2)
- # ethereum (2)
- # events (2)
- # fulcro (60)
- # graphql (10)
- # hoplon (2)
- # jobs-rus (6)
- # keechma (1)
- # lein-figwheel (9)
- # leiningen (36)
- # luminus (2)
- # mount (3)
- # off-topic (16)
- # om (14)
- # onyx (12)
- # pedestal (19)
- # portkey (107)
- # re-frame (9)
- # reagent (5)
- # ring (26)
- # shadow-cljs (149)
- # spacemacs (3)
- # sql (6)
I’m new to Pedestal and finding this section on http://pedestal.io, Connecting to a Running Application (http://pedestal.io/guides/developing-at-the-repl#_connecting_to_a_running_application), a little empty-ish. Any recommendations on alternative tutorials? I’m not seeing much satisfactory via the Googles.
@bherrmann - that’s what I’m doing, and I got through the rest of the tutorial, works great! But, when trying to use it with an existing codebase/running application, I’m having a little trouble. For example, do you ever use response-for
?
@schmudde no, I've simply used ^C^C to reload the current expression, then I reload in the browser to see effects.
Sometimes I’d like to get the response, and see the context in my REPL — so I can actually see how the data is structured (I didn’t write these data structures so I need some visibility). Any advice?
yes, I ocasionally test an expression from the repl, but typically something small like ... (camelcase-my-string "fluffy")
Its old school, put I just toss in a println/ppr on the function / and reload... then copy paste the output where i need it
What about testing what interceptors give back? You just test within the interceptor’s namespace?
That’s probably really what I’m asking. Interceptors often require context like user login. I’d love to deliver the context and see what data comes out the other side.
I'm pretty much a println wheel... take a look at my "check-auth-interceptor" https://github.com/bherrmann7/podcastmaker/blob/master/src/podcastmaker/service.clj
Super. Thank you, @bherrmann! All guidance is helpful at this point!