Phoenix Web Framework: The Unauthorized Guide
Getting Started
Install the Phoenix application generator
To install the newest version of the Phoenix application generator, run the following command from the terminal:
mix archive.install hex phx_newTip: If you get an error when completing this step, then make sure you have installed Elixir as described in the introduction.
Create the Phoenix application
Navigate to the directory where you want to put your Phoenix application, and run the generator command to create our TodoList project:
mix phx.new todo_listWhen the Phoenix application generator asks if you want to Fetch and install dependencies? [Yn], press Enter to install the dependencies.
Start the application to make sure everything works
The project has been created in the todo_list directory. Let's do a basic sanity check to make sure it works:
# Navigate to the project directory
cd todo_list
# Install the dependencies
mix deps.get
# Start the application with the server
iex -S mix phx.serverMention errors, Postgres, etc.
Created 2025-02-11. Modified 2025-11-17.
This guide ("Phoenix Web Framework: The Unauthorized Guide") is licensed under CC BY-NC 4.0. This license enables reusers to distribute, remix, adapt, and build upon the material in any medium or format for noncommercial purposes only, and only so long as attribution is given to the creator.