Miguel Cobá
Miguel Cobá

Miguel Cobá

Creating a Phoenix 1.6 application with asdf

Creating a Phoenix 1.6 application with asdf

Create a Phoenix 1.6 application with Elixir 1.12

Miguel Cobá's photo
Miguel Cobá
·Sep 20, 2021·

1 min read

Table of contents

  • Install asdf
  • Install plugins
  • Install dependencies
  • Install Phoenix
  • Create the Phoenix application
  • Create DB and run application
  • Visit your Phoenix LiveDashboard
  • About

The easiest way to create a new Phoenix Framework application:

Install asdf

Install asdf

Install plugins

asdf plugin-add erlang
asdf plugin-add elixir

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

Install Phoenix

mix local.rebar --force
mix local.hex --force
mix archive.install hex phx_new 1.6.0 --force

Create the Phoenix application

mix phx.new saturn --install

Create DB and run application

cd saturn
mix ecto.create
mix phx.server

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.

Photo by Kyle Kempt on Unsplash

 
Share this