fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Jakub Holý 2020-12-13T08:46:58.344500Z

Is there the info about which version of Fulcro works with which version of Insepct somewhere? Thank you!

tony.kay 2020-12-13T17:43:50.348700Z

The releases section of the repo

tony.kay 2020-12-13T17:44:51.348900Z

Fulcro 3.4+ new inspect, otherwise older one

wilkerlucio 2020-12-13T18:11:58.351700Z

hello, I'm trying to play with Fulcro RAD demo repo, but having trouble to start the client, the server seems to work fine, but on the client its not, the first thing I noticed is that index.html points to a js file js/example/main.js, but that file doens't exist, the path for the cljs compilation is js/main/main.js. I changed that, also noticed the call for <script>com.example.client.start();</script>, which I can't find either, so I just removed it (also checking on shadow cljs it already points to a different init fn). after that I'm getting some other strange errors on the console.

tony.kay 2020-12-13T18:19:01.352100Z

@wilkerlucio hey there

🙂 1
tony.kay 2020-12-13T18:19:14.352400Z

I was not aware of it being broken in any way…let me look

tony.kay 2020-12-13T18:19:31.352700Z

you on develop branch?

tony.kay 2020-12-13T18:19:44.352900Z

actually they are same 🙂

tony.kay 2020-12-13T18:20:27.353100Z

using right port?

tony.kay 2020-12-13T18:20:39.353400Z

should not be using the index.html file at all I think

wilkerlucio 2020-12-13T18:20:57.353600Z

ah, prob wrong branch

wilkerlucio 2020-12-13T18:21:00.353800Z

just cloned, came on master

wilkerlucio 2020-12-13T18:21:03.354Z

trying develop now

tony.kay 2020-12-13T18:21:22.354200Z

http://localhost:3000/

tony.kay 2020-12-13T18:21:34.354500Z

and do NOT add index.html to it

tony.kay 2020-12-13T18:21:45.354800Z

I need to fix the middleware on that, and remove that file

tony.kay 2020-12-13T18:22:00.355100Z

that serves a stale old file if you say index.html

wilkerlucio 2020-12-13T18:22:38.355800Z

makes sense, yeah, I was starting from the shadow http port

tony.kay 2020-12-13T18:22:54.356200Z

Also, in general, I recommend the Datomic db adapter if you use one…it is way better tested. The SQL one works, but it has a number of little annoyances and limitations right now

wilkerlucio 2020-12-13T18:23:05.356500Z

cool, thanks, its working now

wilkerlucio 2020-12-13T18:23:07.356900Z

yeah, using datomic

tony.kay 2020-12-13T18:23:08.357Z

great

tony.kay 2020-12-13T18:23:23.357300Z

I’ll make it a bit more foolproof…

wilkerlucio 2020-12-13T18:24:14.358300Z

I have a suggestion, keep the index.html, but leave a link there like: &lt;a href="localhost:3000"&gt;This is the wrong HTML file, click here to go to <http://localhost:3000>&lt;/a&gt;

wilkerlucio 2020-12-13T18:24:38.358600Z

so if the fool is like me, it will see after trying to start from shadow, hehe

tony.kay 2020-12-13T18:28:02.359300Z

I think removing it worked ok…the correct port will tolerate it because of mw, and the shadow only opens a test port, which shows tests.

2020-12-13T18:40:01.362100Z

How do you deal with components that have the same representation but are different entity types in the DB? Just define two components and factor out the body to a function?

Jakub Holý 2020-12-13T18:54:10.362600Z

Thanks!

Jakub Holý 2020-12-13T19:06:35.364Z

Are you suggesting Wilker is a fool? :troll: (Excuse my bad jokes.)

tony.kay 2020-12-13T19:07:05.364200Z

I think he’s the one that suggested that, but he and I are good friends 😜…so it would not be surprising for us to tease each other a bit

Jakub Holý 2020-12-13T19:07:46.364500Z

I guess that is what I would do though I have not encountered this problem yet.

2020-12-13T19:31:21.365500Z

Thank you. Seems obvious but I always wonder if it's the idiomatic way of doing things.