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.

Image of Datadog

Learn how to monitor AWS container environments at scale

In this eBook, Datadog and AWS share insights into the changing state of containers in the cloud and explore why orchestration technologies are an essential part of managing ever-changing containerized workloads.

Download the eBook

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs