This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-16
Channels
- # aleph (2)
- # beginners (68)
- # boot (25)
- # bristol-clojurians (5)
- # cider (10)
- # cljs-dev (60)
- # cljsrn (1)
- # clojure (138)
- # clojure-austin (1)
- # clojure-france (2)
- # clojure-greece (11)
- # clojure-italy (4)
- # clojure-russia (16)
- # clojure-spec (4)
- # clojure-uk (75)
- # clojurescript (26)
- # core-async (28)
- # cursive (25)
- # data-science (4)
- # datomic (16)
- # defnpodcast (2)
- # devops (2)
- # docs (10)
- # duct (11)
- # emacs (1)
- # events (1)
- # figwheel (8)
- # fulcro (61)
- # garden (2)
- # hoplon (6)
- # java (6)
- # jobs-discuss (1)
- # lein-figwheel (14)
- # leiningen (86)
- # luminus (11)
- # off-topic (8)
- # parinfer (9)
- # pedestal (2)
- # re-frame (19)
- # reagent (1)
- # ring (3)
- # ring-swagger (8)
- # shadow-cljs (278)
- # spacemacs (13)
- # sql (5)
- # testing (7)
- # unrepl (8)
- # yada (25)
@mihaelkonjevic I tend to use postal https://github.com/drewr/postal
@yogthos ok, but how do you handle sending email out of the request - response cycle? Or is postal handling that automattically?
ah, makes sense. I’ll be working on my first clojure/luminus project soon (which I’m very much looking forward to), so I’ll have a lot of questions 😄
Switching from CLJS will be an interesting change
so something like this should do the trick:
(defstate email-channel
:start (a/chan 10))
(defstate email-loop
:start (a/go-loop []
(when-some [email (a/<! email-channel)]
(postal/send-message email)
(recur))))
awesome, that’s what I was looking for
i have a luminus project created with +postgres, so it has the init and various migrate commands. i tried to add my own command, but when i try to run lein repl
, it errors out with REPL server launch timed out.
. apparently there were problems with compilation. The start of the error stack trace is:
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.ClassNotFoundException: quickstart.populate, compiling:(quickstart/core.clj:64:7)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7010)
at clojure.lang.Compiler.analyze(Compiler.java:6773)
at clojure.lang.Compiler.analyze(Compiler.java:6729)
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:6100)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7003)
...