This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Hello, I'd like to know how to structure files and folders in a project that will only have a basic backend, Jetty + Ring, and Elm as frontend, inside the polylith architecture. Maybe two projects? Where should the folder for the Elm project live? in a resources folder, base/component src? It's basically a simple backend just serving static JS files created by Elm, and then it would behave as a SPA
I haven’t worked with Elm before. However, I believe you should structure your project, as you mentioned, where the front end is served from the base and stored under a resources folder of the base or another component. However, you will not benefit from Polylith in the front end since cljs is not supported. At work, we keep two separate repositories for the Polylith backend and a regular shadow-cljs frontend.