To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror 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.
Step by step guides to build a todo_api
- Basic version This will generate the basic structure of a Phoenix project, including configuration files, a supervision tree, and an initial endpoint, but not everything is needed for an API project.
- API_version. Tailored specifically for API development. No more unnecessary LiveView, assets, HTML, dashboard, or mailer files. Just the essentials!
- HTML version. Tailored togenerate the basic structure of a Phoenix project targeting an HTML API. This is better than the generic approach mix phx.new todo_api used before when you only want to create a simple HTML-based resource.
- 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