Fork me on GitHub

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?

Jan K15:12:39

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


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

Braden Shepherdson17:12:31

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.

Braden Shepherdson17:12:06

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


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