fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
2020-09-08T02:58:11.253300Z

What’s involved in adding various elements from the RAD demo to the official fulcro 3 template?

tony.kay 2020-09-08T14:34:26.253500Z

ummm. coding? Really you just add the deps and start using it. Not sure what you’re asking.

tony.kay 2020-09-08T15:12:55.254400Z

you do need to upgrade the version of Fulcro, since the RAD tools use some of the newer features. I think it requires the multi-root renderer, which is documented, I believe.

2020-09-08T16:09:20.258400Z

Hah, I suppose after a night of sleep that was not a very good question. Sorry about that! I just got the Fulcro 3 template working with migratus and replaced the mock database with postgres. I'm watching your overview vid and reading up on the rad book so I'm trying to decide if I should start over again with the RAD demo, or if I should pull in RAD components as needed, or just stick to Fulcro 3 to get it working then migrate later.

2020-09-08T16:12:30.260700Z

As for a first question: Is Datomic required for RAD?

Michael W 2020-09-08T16:13:02.261700Z

It’s not required but the sql adapter is alpha and unmaintained.

2020-09-08T16:13:29.262500Z

I can't tell yet if you can just use Postgres, if you use Datomic on top of postgres, or if Datomic is a hard requirement.

Michael W 2020-09-08T16:13:37.262700Z

You can write resolvers into any database you want, the datomic support just makes it so you don’t have to do that for datomic.

Michael W 2020-09-08T16:14:26.263600Z

Datomic Pro can run using postgresql as it’s storage back end.

2020-09-08T16:20:51.265200Z

Hmm ok so not using datomic is possible, but its not a widely-supported, polished path yet. Last I saw, Datomic was not open-source and I would need to pay to use it?

2020-09-08T16:30:19.267100Z

Does RAD work best with Datomic Cloud (or at least dev-local version to get started) or the Community Edition? I find myself a bit overwhelmed with the options atm 😅

Michael W 2020-09-08T16:33:58.267600Z

If it’s not commercial you can use datomic free. If it’s commercial you do have to pay.

Michael W 2020-09-08T16:34:23.268100Z

Datomic cloud support is new, I saw an announcement about it recently that it is supported now.

2020-09-08T16:41:48.271900Z

Haven't thought too far ahead on that yet. Aiming to keep it open-source but perhaps charge a few bucks a month for a hosted service version of it. But only if it comes out well, people find it interesting\useful, and it's a reasonable amount of work to add in paid subscriptions. That likely would put me in the commercial territory. Which means I should probably use the Starter on-premise to get started or the Datomic Cloud dev-local.

2020-09-08T16:43:49.274100Z

I definitely lack sys-admin skill\experience so I'm probably much better off with datomic cloud. I'll start with dev-local, keep it open-source until I'm ready to create a paid version then use a paid Datomic Cloud setup for production sometime down the road.

2020-09-08T16:59:29.276100Z

Now I'm kinda thinking it might be best to keep with the fulcro3 template + postgres config. Get to a stable place with a CLI or TUI then try implementing it with RAD using Datomic Cloud for comparison.

Michael W 2020-09-08T17:00:25.276900Z

You can use RAD with postgres you just have to write resolvers, pretty much the same you would do with just plain fulcro.

Michael W 2020-09-08T17:01:01.278Z

RAD gives you quite a bit of things, but for me forms is the killer feature, not having to write every piece of html is very nice.

2020-09-08T17:01:39.278800Z

Oh! That doesn't sound so bad. For someone who hasn't developed with Fulcro yet or RAD, you would recommend getting started with RAD?

Michael W 2020-09-08T17:02:01.279200Z

Yes, it does a lot for you that you would otherwise have to do manually.

Michael W 2020-09-08T17:03:10.280700Z

The rad demo repo shows off some cool stuff, clone it, fire it up, and see all the stuff you can do.

2020-09-08T17:03:29.281400Z

Good idea! Thank you.

Michael W 2020-09-08T17:03:30.281500Z

It uses an in-memory datomic free so you don’t have to do anything at all.

2020-09-08T17:04:45.283500Z

I'm not married to Postgres, just considering using what I'm familiar with to get something done vs learning an entirely new stack. Datomic has always sounded appealing to me.

Tyler Nisonoff 2020-09-08T17:05:35.284400Z

Theres also this branch of the demo: https://github.com/fulcrologic/fulcro-rad-demo/tree/datomic-cloud which runs the demo on dev-local / Datomic Cloud

Michael W 2020-09-08T17:06:05.284900Z

I am using datomic-free for now, if I go commercial I’d probably use datomic pro on top of postgres citus.

2020-09-08T17:07:38.285300Z

Awesome thanks for the link!

tony.kay 2020-09-08T18:18:09.287800Z

The overall design of RAD, as expressed in the book, is database agnostic. It’s attribute-centric. A database adapter is actually a very thin layer, and hand-writing resolvers is quite tractable…it’s what you’d do with non-RAD Fulcro anyway, so you’re definitely not losing anything, right? What you gain is your data model expressed in a central open-map place where you can hang any addl info you want to say about that data, which then lets you use the data management layer, rendering, etc.

2020-09-08T19:51:04.288800Z

Alright! May as well go for it and figure it out 🙂

roklenarcic 2020-09-08T20:35:19.289400Z

Hm I tried using ::attr/computed-value attribute in my report and it just shows up empty…

Mr. Savy 2020-09-08T23:24:42.291Z

from what work I've done so far, in fulcro components are designed around data flow, not the aesthetics of a component (css, html structure, etc). is that right?

tony.kay 2020-09-08T23:56:52.291200Z

correct @ajsnow2012

tony.kay 2020-09-08T23:57:24.291800Z

css/html and such are just function calls and artifacts…the proper components are those things that have real data needs

👍 1
tony.kay 2020-09-08T23:57:32.292Z

often the two align