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?
Or in other words, how do you set up client/server projects?
It's definitely possible. There likely exist better examples, but one of my projects does exactly that https://gitlab.com/jan_k/doomlist
Check out these docs https://figwheel.org/docs/your_own_server.html
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
your site loads from your server, and then it connects to Figwheel on a different port for live updates.