DEV Community

Miguel Cobá
Miguel Cobá

Posted on • Updated on • Originally published at blog.miguelcoba.com

Creating a Phoenix 1.6 application with asdf

The easiest way to create a new Phoenix Framework application:

1. Install asdf

Install asdf

2. Install plugins

asdf plugin-add erlang
asdf plugin-add elixir
Enter fullscreen mode Exit fullscreen mode

3. Install dependencies

asdf install erlang 24.1.2
asdf global erlang 24.1.2
asdf install elixir 1.12.3-otp-24
asdf global elixir 1.12.3-otp-24
Enter fullscreen mode Exit fullscreen mode

4. Install Phoenix

mix local.rebar --force
mix local.hex --force
mix archive.install hex phx_new 1.6.0 --force
Enter fullscreen mode Exit fullscreen mode

5. Create the Phoenix application

mix phx.new saturn --install
Enter fullscreen mode Exit fullscreen mode

6. Create DB and run application

cd saturn
mix ecto.create
mix phx.server
Enter fullscreen mode Exit fullscreen mode

7. Visit your Phoenix LiveDashboard

Open http://localhost:4000/dashboard

Phoenix LiveDashboard

Done.

About

I am Miguel Cobá. Follow me to get more info about Elixir, Elm, or writing eBooks.

Discussion (0)