concept new Phoenix application in category elixir

appears as: new Phoenix application, new Phoenix applications
Phoenix in Action

This is an excerpt from Manning's book Phoenix in Action.

In the browser pipeline, you accept "html" requests, getting the session and the flash (which stores temporary messages for the user, such as success, info, or warning messages); you set up forgery protection for your forms; and you put secure browser headers into the data. In the api pipeline, you only accept "json" requests. This makes sense—why get the flash and set up form forgery protection when a typical API request doesn’t utilize either of those features? Note that these pipelines are set up by default when you create a new Phoenix application—these pipelines haven’t changed at all from the defaults.

  • Use the mix phx.new.web Mix task to generate a new Phoenix application inside an existing umbrella application.