DEV Community

Miguel Cobá
Miguel Cobá

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

4 1

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'm Miguel Cobá. I write about Elixir, Elm, Software Development, and eBook writing.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay