This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-29
Channels
- # aleph (2)
- # architecture (1)
- # beginners (5)
- # boot (7)
- # cider (24)
- # clara (28)
- # cljs-dev (7)
- # cljsjs (3)
- # cljsrn (24)
- # clojure (145)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-uk (54)
- # clojurescript (159)
- # cursive (49)
- # data-science (8)
- # datomic (23)
- # editors (10)
- # emacs (2)
- # fulcro (123)
- # graphql (12)
- # hoplon (2)
- # java (23)
- # jobs (1)
- # jobs-discuss (2)
- # leiningen (17)
- # mount (5)
- # nrepl (5)
- # off-topic (20)
- # om (2)
- # onyx (25)
- # parinfer (2)
- # pedestal (1)
- # re-frame (8)
- # reagent (7)
- # ring-swagger (1)
- # shadow-cljs (24)
- # spacemacs (7)
- # specter (6)
- # tools-deps (7)
- # vim (2)
I’m not sure what I’m missing I want to call the http://darksky.net api which doesn’t allow CORS so I setup a simple ring+compojure server that serves up my re-frame apps index.html as well as a /weather endpoint that calls darksky. However even updating my reframe event to call http:/localhost:3000/weather I still get no response. Hitting that endpoint in the browser I get the json response. Here’s my WIP PR https://github.com/chadhs/ccclock/pull/13/files
figured it out, i had to enable CORS on my ring proxy
{:status 200
:headers {"Access-Control-Allow-Origin" "*"
"Access-Control-Allow-Headers" "Content-Type"
"Content-Type" "application/json"}
:body (get result :body)}
@danielcompton - I want to have a re-frame app be able to derive views by reading from Markdown files in the resources/public directory and translating markdown to hiccup. Would this course cover that as well? If so,
@aaelony The course doesn't use re-frame nor markdown. You can get good idea of the contents from the free part of the course: https://www.jacekschae.com/learn-reagent-free
For converting markdown to hiccup, on JVM you can use https://github.com/theJohnnyBrown/endophile
oh - I just meant slurping a file from clojure and being able to process it into hiccup that becomes the view in cljs