This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-27
Channels
- # beginners (34)
- # boot (15)
- # cider (7)
- # cljs-dev (7)
- # cljsjs (2)
- # cljsrn (46)
- # clojure (130)
- # clojure-argentina (1)
- # clojure-colombia (2)
- # clojure-greece (1)
- # clojure-italy (53)
- # clojure-losangeles (1)
- # clojure-russia (15)
- # clojure-spec (8)
- # clojure-uk (100)
- # clojurescript (117)
- # core-matrix (1)
- # cursive (24)
- # datomic (41)
- # duct (1)
- # emacs (11)
- # fulcro (22)
- # graphql (4)
- # hoplon (3)
- # jobs (1)
- # lein-figwheel (3)
- # luminus (18)
- # lumo (52)
- # off-topic (57)
- # pedestal (2)
- # planck (12)
- # re-frame (22)
- # remote-jobs (1)
- # ring-swagger (6)
- # rum (7)
- # shadow-cljs (13)
- # yada (19)
Hi, SevereOverfl0w on Reddit said I should join up here 🙂 Nice to meet everyone. I'm working on a Yada/Edge:AngularJS system and I'm fairly new to Clojure myself.
hey @thaddeus.aid, welcome
Okay question one: I'm de-cljsing my edge install and the package is still looking for index.html in templates. Should I remove that route and let the web server deal with it, or how to I change the path on that?
hmm, dunno - my yada-use predates edge somewhat, so i've never used it
👋 @thaddeus.aid I am SevereOverfl0w
@dominicm nice to meet you and thank you for the help so far 🙂
Okay, so like you suggested I put my angular app in resources/ but when I start the server it is bringing up resources/template/index.html this I don't want on a GET / I want to serve resources/index.html
but I also need to ensure that I am also serving the associated files such as app.css and app.js
What should I be looking for to do that? I'm sorry I'm normally a Java programmer
https://github.com/juxt/edge/blob/054ed4879ba113ca3e52a732cb648e24ddc66921/src/edge/web_server.clj#L23-L31 I think you can just delte all of that & it will do what you expect
thanks!
Is there a conventional approach in Yada (or more generally HTTP) for requesting a resource that doesn't exists yet? And perhaps have a way to let the user know the progress? Let's take an example: The user can request a PDF report that takes a few seconds/minutes to generate. If it was already generated, great, simply return it. But what if the client needs to come back a little later?
@frozenlock https://httpstatuses.com/202 http status 202
is a common way to denote this, but as far as I'm aware, there's no official standard for that use case
@tanzoniteblack Thanks! I suppose I could include the ETA or some sort of progress % in the body.
okay been playing with everything today. I'm setting up a JWT token auth pattern for the end user using Google Oauth and I have Google returning the Bearer Token to an end point, now what is the best way to verify the google Bearer token and turn it into a JWT auth token for my use?
is this a good place to start? https://coderwall.com/p/y9w4-g/google-oauth2-in-clojure