Fork me on GitHub
#fulcro
<
2021-12-13
>
simonkatz17:12:13

I’m working my way through the Fulcro 3 video tutorials (https://www.youtube.com/playlist?list=PLVi9lDx-4C_T7jkihlQflyqGqU4xVtsfi and the code at https://github.com/fulcrologic/video-series). I’m at Part 6 : Full Stack Part One. The server is started on port 3000, but the client is trying to talk to the remote using port 8000 (the :dev-http port specified in shadow-cljs.edn. I guess I have two questions: 1. Is there a problem with the code at https://github.com/fulcrologic/video-series ? 2. How do I get the client to talk to the server?

simonkatz17:12:18

Hmmmm. I can use (http/fulcro-http-remote {:url ""}) , but then I have cross-origin problems.

Jakub Holý (HolyJak)17:12:37

Ignore dev-http, it is not intended to be used I believe - at least that way it is in Fulcro-template. Simply go to localhost:3000/

simonkatz18:12:33

Thanks. Yes, it now works. I removed :dev-http from shadow-cljs.edn, and accessed I’ll add a comment to the video.

tony.kay19:12:42

The dev port is there for using workspaces and test UI.

tony.kay19:12:51

which don't otherwise have their own way of being served

👍 1