Fork me on GitHub

I’m not sure what I’m missing I want to call the 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


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:


For converting markdown to hiccup, on JVM you can use


oh - I just meant slurping a file from clojure and being able to process it into hiccup that becomes the view in cljs


checking the free version now, actually. Pretty nice so far!


(and this is a re-frame channel, so... :)