I used the
--no-html options when making a new phoenix project, and I don’t understand why the MyAppWeb module has controller, view, router, channel, and view_helpers.
The structure of the default phoenix app just doesn’t make a lot of sense to me, and I’m wondering if I should build my app from scratch. Any reason to not do this?
I don’t understand why phoenix apps have a MyAppWeb module and a MyApp module. It’s not clear to me what belongs in Web, and what belongs outside of Web.
I’m wanting to have some rest endpoints and websocket channels to serve a variety of clients, but all frontend UI would be independent. In other words, if I’m going to deploy a React app and connect to my phoenix-based API, I will deploy it as a standalone app, rather than manage it with an assets pipeline.