newbie2

newbie2

Phoenix phx.gen.auth for umbrella app, how to: mix phx.gen.auth Accounts User users

Hi all,

I have a clean umbrella project structured like this:

  • apps/data → Ecto + Data.Repo

  • apps/core → business logic

  • apps/admin → Phoenix app (without its own Repo)

How can I configure the umbrella project so that I can run
mix phx.gen.auth Accounts User users
inside the admin app?

elixir 1.19, phoenix 1.18.

Most Liked

dimitarvp

dimitarvp

I have also seen and contributed to serious efforts to introduce various boot-time flags / variables that made the app look like something very different depending on that input.

Not super idiomatic, many would say, but it worked well, we just had to have a good discipline. Lint by lint, regex rule by regex rule, we got there. It worked great.

I don’t deny that umbrellas can do the same but they gave me enough WTFs back in the day for me to remember not wanting to risk with them again. Maybe it’s a skill issue but I’d be okay with that as well. I don’t aim to know 100% of everything in Elixir.

And yeah Boundary is great. I love it and used it many times now (ironically never in my OSS work but so far I have not needed it there).

Where Next?

Popular in Questions Top

New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31494 112
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40042 209
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement