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
I'm a bit confused by your question 🙂
@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
removing the special exception for index.html from bidi should do the job!
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!
No problem! Glad to be helpful
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