yada

ThadIsNOTFood 2017-09-27T15:44:40.000050Z

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.

1
mccraigmccraig 2017-09-27T15:50:24.000178Z

hey @thaddeus.aid, welcome

ThadIsNOTFood 2017-09-27T16:04:41.000057Z

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?

mccraigmccraig 2017-09-27T16:06:32.000182Z

hmm, dunno - my yada-use predates edge somewhat, so i've never used it

dominicm 2017-09-27T16:07:57.000215Z

👋 @thaddeus.aid I am SevereOverfl0w

dominicm 2017-09-27T16:08:43.000501Z

I'm a bit confused by your question 🙂

ThadIsNOTFood 2017-09-27T16:08:44.000202Z

@dominicm nice to meet you and thank you for the help so far 🙂

ThadIsNOTFood 2017-09-27T16:10:10.000499Z

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

ThadIsNOTFood 2017-09-27T16:10:42.000675Z

but I also need to ensure that I am also serving the associated files such as app.css and app.js

dominicm 2017-09-27T16:11:02.000190Z

removing the special exception for index.html from bidi should do the job!

ThadIsNOTFood 2017-09-27T16:16:37.000191Z

What should I be looking for to do that? I'm sorry I'm normally a Java programmer

dominicm 2017-09-27T16:19:49.000125Z

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

ThadIsNOTFood 2017-09-27T16:21:35.000207Z

thanks!

dominicm 2017-09-27T16:24:54.000658Z

No problem! Glad to be helpful

2017-09-27T21:32:03.000259Z

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?

tanzoniteblack 2017-09-27T21:55:07.000285Z

@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

2017-09-27T21:56:15.000305Z

@tanzoniteblack Thanks! I suppose I could include the ETA or some sort of progress % in the body.

ThadIsNOTFood 2017-09-27T23:31:44.000086Z

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?

ThadIsNOTFood 2017-09-27T23:37:13.000200Z

is this a good place to start? https://coderwall.com/p/y9w4-g/google-oauth2-in-clojure