This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-10
Channels
- # 100-days-of-code (2)
- # announcements (2)
- # aws (11)
- # beginners (114)
- # boot (6)
- # calva (11)
- # cider (11)
- # cljdoc (2)
- # cljs-dev (7)
- # clojure (126)
- # clojure-berlin (1)
- # clojure-conj (4)
- # clojure-dev (1)
- # clojure-germany (12)
- # clojure-italy (22)
- # clojure-spec (96)
- # clojure-uk (111)
- # clojurescript (27)
- # core-async (8)
- # cursive (17)
- # datomic (26)
- # devops (5)
- # editors (15)
- # emacs (13)
- # events (1)
- # figwheel-main (27)
- # fulcro (64)
- # hyperfiddle (29)
- # jobs (8)
- # jobs-discuss (7)
- # liberator (4)
- # off-topic (46)
- # om (9)
- # onyx (1)
- # overtone (1)
- # perun (8)
- # re-frame (28)
- # reagent (35)
- # reitit (5)
- # shadow-cljs (96)
- # spacemacs (1)
- # testing (10)
- # timbre (8)
- # tools-deps (63)
- # unrepl (1)
- # yada (10)
@polymeris I you’re going to do this please don’t make Node a requirement. There are a TON of scenarios where you would want to call aws from the browser directly. I’ve got a PoC calling an aws lambda from the browser, no apigateway or webserver in sight.
Hmm, interesting
The cljsjs.aws-sdk-js
I am depending on for the exerns already brings in the browser build of the SDK (which is apparently different from the node build). It would be a matter of switching to using the correct AWS
object in the browser.
My use case is calling this from lambdas, so I haven't really given that much thought.
As a countercase: I would take an API that requires node. I think node is a better lambda backend than clojure on java due to startup times
@polymeris That library hasn’t been updated in a very long time. I ended up manually writing a foreign libs file because the sdk uses modules 3 levels deep and cljs has trouble requiring them (i believe because its not a valid symbol)
Well, the unit test work in the browser if I just replace (nodejs/require "aws-sdk")
with js/AWS
, so that gives me some hope that we can support both
What's the best way to end-to-end test if it works in the browser? Do I have to create a cognito pool?