edit.tosdr.org icon indicating copy to clipboard operation
edit.tosdr.org copied to clipboard

Write code to call ota.tosdr.org from phoenix

Open michielbdejong opened this issue 1 year ago • 3 comments

michielbdejong avatar Sep 12 '24 08:09 michielbdejong

I need this for #1169 so doing a preliminary version of it in the ota-dev branch; we can create a cleaner version of it when you have time maybe today/tomorrow/next week @madoleary ?

michielbdejong avatar Sep 12 '24 08:09 michielbdejong

I can do development using VSCode + docker compose and I found how to use logger.info to log things. Now disabling the throttler because it's getting in the way.

michielbdejong avatar Sep 12 '24 08:09 michielbdejong

OK phoenix side is now ready to post on my laptop, now firing up node server.js from https://github.com/tosdr/ota-engine/tree/crawl-api and then see if phoenix can do the http post there. This is what it should be posting (see #1170 for more details):

curl -d'{"fetch":"http://example.com","select":"body"}' http://localhost:3000

michielbdejong avatar Sep 12 '24 08:09 michielbdejong