shahryarjb

shahryarjb

Elixir projects with application under Phoenix umbrella (DDD)

Hi, I created a Phoenix project which uses umbrella structure, but I’m confused because I have 3 or 4 projects under it that are created with mix new NAME --sup and they have own application ex file.

Now how the Phoenix umbrella project knows it at start, some services should be started under each application file when I start phoenix project as main.

Do I create a main application file in my project and add all the sub project application module ?

Most Liked

LostKobrakai

LostKobrakai

Umbrella apps are just a different structure to conveniently develop multiple applications side by side. It doesn‘t alter the fact that applications work independent from each other. Startup order is determined by dependencies of each individual application (ˋdepsˋ in applications mix.exs). Therefore there‘s no code overarching all the applications in your umbrella project.

Last Post!

al2o3cr

al2o3cr

The umbrella project does this already - it will start all the apps in the apps key of the top-level mix.exs file, or everything that looks like an application in apps_path.

Where Next?

Popular in Questions Top

Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

We're in Beta

About us Mission Statement