Phoenix "Modular" Applications

Hi All - Happy Easter,

So i was googeling and searching a lot for this kind of question, but did not find a satisfying solution yet. What I want to achive is having one Phoenix App which is something like a blog. Those should be added to two different projects aswell (same functionality is needed)

Is there any way, to write or include another Phoenix App into an existing one and just tell the Router, that is is a different Module? I assume I ship it as an Elixir Module - add all the Routes and then just ensure it is started without Endpoint Server true or other Phoenix App “running” and expose the Routes to the main router? Will this work?

3 Likes

Last year I was working on this concept, and I have a proof of concept for it, that is not finished yet, but was usable at the time, no idea if it still works with new versions of Phoenix.

2 Likes