Gerome 2020-12-02T11:01:51.147600Z

Hi everyone, I was wondering how to best approach the following project setup: I would like to have one monorepo that contains client and server. I fire up figwheel and a repl for my backend and I can ask my server for an index.html and I get my client together with figwheel. Is this doable without hours spent in documentation? Is it just too complicated and it's faster to just have two repos and configure my client so it can talk to a decoupled server?

Gerome 2020-12-02T11:02:12.148100Z

Or in other words, how do you set up client/server projects?

Jan K 2020-12-02T15:08:39.148300Z

It's definitely possible. There likely exist better examples, but one of my projects does exactly that

Jan K 2020-12-02T15:14:37.148600Z

Check out these docs

Gerome 2020-12-02T16:13:25.149200Z

This is awesome! I’ll have a look at it.


The flip side is also pretty straightforward. Figwheel generates static files, and it supports CORS requests nicely. so you can launch Figwheel in the background, and have your server (Pedestal + Protojure gRPC server in my case, but anything will work) server the index.html and JS files from target/public.


your site loads from your server, and then it connects to Figwheel on a different port for live updates.