This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-29
Channels
- # announcements (1)
- # babashka (120)
- # beginners (184)
- # cider (14)
- # clara (2)
- # clj-kondo (25)
- # cljfx (9)
- # cljsrn (43)
- # clojure (46)
- # clojure-australia (2)
- # clojure-berlin (5)
- # clojure-dev (2)
- # clojure-europe (10)
- # clojure-france (3)
- # clojure-nl (1)
- # clojure-spec (14)
- # clojure-uk (30)
- # clojurescript (50)
- # code-reviews (19)
- # conjure (11)
- # core-logic (2)
- # cursive (20)
- # datascript (1)
- # datomic (74)
- # figwheel-main (1)
- # fulcro (10)
- # funcool (2)
- # graphql (1)
- # lambdaisland (1)
- # malli (2)
- # meander (22)
- # nrepl (13)
- # off-topic (28)
- # overtone (3)
- # pathom (7)
- # pedestal (4)
- # re-frame (4)
- # reagent (16)
- # reitit (4)
- # releases (1)
- # ring (8)
- # shadow-cljs (93)
- # specter (6)
- # sql (13)
- # test-check (1)
- # tools-deps (1)
- # tree-sitter (2)
- # vim (8)
- # xtdb (25)
How would one recommend a Fulcro app that talks to various micro-service APIs for its data/authentication/etc versus the application having its own database? Would this just be a client side Fulcro application? Or could the server side be responsible for fetching the data and transforming it..?
@njustice you can use #pathom on client, as remote And on create many resolvers, for each server With this approach, if you need, you can move the parser into a server without need to re-implement anything
Ah I see.. so I can make resolvers for each api call (I.e. get-some-resource-by-id
) and have the server side of my fulcro app handle the parser
I have an old FC2 app that I want to port over to FC3, but I’m leaning more towards starting a fresh app and writing a new server to handle the API stuff - hoping if I can get the data correct I can just move over and reuse all my defsc client side stuff
@U2J4FRT2T I don’t have a GraphQL setup, all my end points are basic REST calls w/ JSON responses, etc. - will that be an issue?
not a problem, its simpler that way
@U066U8JQJ awesome to hear! Are there any example of this I can find?
there is an example for wrapping a few SpaceX endpoints here: https://github.com/wilkerlucio/pathom-connect-spacex/blob/master/src/core/com/wsscode/pathom/connect/spacex.cljc
but thinking today, I suggest avoiding the p.http
thing and just do the requests directly, will be simpler, and that abstraction (Pathom HTTP abstraction) is going to die