- Install Elixir 1.14.0 or later
- Install Node.js 18.0.0 or later
- Install PostgreSQL 15.0 or later
- Install GNU Make 4.x (sudo apt-get install make)
- Create a PostgreSQL database named
gelixir_dev
and a user namedgelixir
with passwordgelixir
(the database step can be done withmake star_db
command) - Run
mix deps.get
to install dependencies - Run
npm install --prefix assets
to install JavaScript dependencies - Run
mix ecto.setup
to create and migrate the database
- 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.
- 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