To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Command to create the db
mix ecto.create
- Command to drop the db
mix ecto.drop
- Command to generate the migration
mix ecto.gen.migration create_user_table
- After the migration file filled:
mix ecto.migrate
- Start Phoenix endpoint with
mix phx.server
- To view coverage
mix test --cover
ormix coveralls.html
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix