Fork me on GitHub

nice! what ended up being the issue? i just went through adding support for tick (date time lib) types, so i'm curious 🙂


I am trying to use datomic-pro with fulcro-rad, and I am getting the error below -


 async.clj:  148  datomic.client.api.async/create-database


datomic pro is on-prem…somehow you’re getting a call to the client API


probably have a setting wrong in your config


;; {:server-type :peer-server ;; :access-key "myaccesskey" ;; :secret "mysecret" ;; :endpoint "localhost:8998" ;; :validate-hostnames false ;; :db-name "dev-db"} Its an in memory db I am using for dev. I am able to connect directly to it , and do transactions, however through fulcro it fails.


above is the config I am using.


See the demo project. It uses on-prem. I’m talking about the EDN config file for Fulcro that you’re feeding into RAD.


this error occurs on com.fulcrologic.rad.database-adapters.datomic-cloud/start-databases


However if I use the datomic-cloud it works well, can someone help on this one ?


It might be worthwhile dropping into either the datomic slack or the forums? Just to establish it’s not a datomic specific connection issue as opposed to a fulcro one?


hi, does Fulcro as something for generating API documentation for developers ? In graphql - because it's defined as a language, there are some tools that generate it based on comments: . I imagine this can be done from the elements in clojure. Did anyone do something like this or has some ideas on to do it?


That might be more of a Pathom thing - see #pathom channel.


To add more context to the above question: I'm asking how to generate API docs that external developers would use to integrate or develop on top of a Fulcro app


Pathom resolvers are just maps…they are open maps. Put keys in them. Doc generation is then just an iteration over the resolvers (maps) extracting necessary info. Linkage can be figured out using pathom indexes, which are documented in Pathom book.


Thanks, I will look into that


BTW, the RAD approach of putting the definitions in attributes and deriving everything from that is, IMO, more general…define your data model, then generate everything from there (schema, resolvers, network APIs (EQL and GraphQL and REST), database saves, etc.). An example of the great power you get out of these concentrations of metadata are things like: general save for normalized and properly namespaced Fulcro data makes the general algorithm for “save” very tractable for any database (for Datomic its like 200 lines of code…writing to your database for all operations (sans security): done). But then security and every other concern can usually also be described on the model. It’s quite a powerful way to build a system.


thanks. I agree it has advantages. I would like to know the downside to it - everything has at least one 🙂


The biggest downside is that there is a tendency to over-generalize, which is typically the downfall of any system that is trying to be broad.


guilty of that 🙂 thanks, I will keep that in mind


so for example, take to-many relations. If I try to over-generalize so that I can capture enough data to model the thing in Datomic and SQL and Firebase and …. all at once, then the generalization itself becomes crazy


the trick is to be very very careful of capturing a distilled detail that is neither overly general or too specific. It’s a very hard problem, actually.


But, once you hit the right balance, things fall out quite nicely


Then of course, some new thing pops into the world and throws a wrench at your beautiful thing


please stop describing my life 🙂


So, constraining the problem domain is super important


yes, stop people from reinventing the internet


RAD is aimed at common business apps that have form-like and report-like things…try to build an MMORPG with it, and it’ll be…interesting


like an ERP 😉 ?


because I'm looking at making an API on top of Apache OFBiz - which is ancient and ugly but has some ideas that I saw in pathom. Unfortunately Java has limitations on expressing that


thanks, if I get some results on that with Fulcro I'll be sure to publish them and share a link here