To start your Phoenix server:
- Run
mix setup
to install and setup dependencies - Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
mix phx.gen.auth Accounts User users
= gera autenticação de usuários. For LiveView, mix phx.gen.live <attributes (key => value)>:mix phx.gen.live Stories Story stories title:string body:text user_id:references:users>
= gera migração, schema ou módulo com atributos, testes, componente, rotas, escopo, página HTML, fixtures.