fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
aratare 2021-01-15T06:55:11.023200Z

Hi there. I'm having some problem with routing which I'm not sure what's going on. So I have a simple Root -> [Login Main] setup that when I hit localhost:8000 it will bring me to the Login page. However the URL stays the same, and going to localhost:8000/login returns Not found. Missing index.html.. Would appreciate any ideas of why something like this might happen. Thanks 🙂

Jakub Holý 2021-01-15T08:10:01.023300Z

Dynamic routing has nothing to do with urls, though you can connect the two. Look at the RAD demo and how it uses its history api wrapper, start from client.cljs

aratare 2021-01-15T08:10:49.023500Z

Thanks 🙂

Jakub Holý 2021-01-15T08:12:33.023700Z

For the other error - again look how RAD demo routes every path to its index page. What is your app based on? How do you run the server?

aratare 2021-01-15T08:12:55.023900Z

Just normal shadow-cljs

Jakub Holý 2021-01-15T08:16:15.024100Z

You mean shadow-cljs dev server? Then you need to look at how it does routing. This suggests you are basing your code neither on fulcro-template nor fulcro-rad-demo, correct?

aratare 2021-01-15T08:16:49.024300Z

Yes I was using the default Person example from the book and started building on top of it.

Jakub Holý 2021-01-15T08:17:38.024500Z

I'd recommend starting with fulcro-template as it is already wired correctly

aratare 2021-01-15T08:17:47.024700Z

So I was thinking about using those two but I need to get my hands dirty so I can understand Fulcro a bit more.

Jakub Holý 2021-01-15T08:19:07.024900Z

Then get them dirty by studying the template :) Also check out the advice in https://docs.google.com/document/d/1XMWwwnxtukZ0o3ev4GH2Kpa8MvX4z-r4kYKJMaMBw2A/edit?usp=sharing

aratare 2021-01-15T08:20:15.025100Z

Will do thanks 👍

Jakub Holý 2021-01-15T08:20:49.025300Z

You need a good deal of plumbing that's easy to get wrong.