After creating a phoenix framework project the root directory contains the following directories.
README.md _build/ assets/ config/ deps/ lib/ mix.exs mix.lock priv/ test/
If i run the following migration:
mix phoenix.gen.json Photo photos path:string
This creates a /web directory at the root path that lives outside the /lib directory but follows the same structure as ./lib/myproject_web
This does not make sense to me and doesn’t look like a correct structure. I would have though it should be merged into the structure inside the lib directory.
Can someone clarify if I am running the command wrong or this is indeed the correct file structure? thanks.