# Creating a Phoenix 1.6 application with asdf

The easiest way to create a new [Phoenix Framework](https://www.phoenixframework.org) application:

##  Install asdf

[Install asdf](https://asdf-vm.com)

##  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](http://localhost:4000/dashboard)

![Phoenix LiveDashboard](https://cdn.hashnode.com/res/hashnode/image/upload/v1635361156078/BU89Vd52h.png)

Done.

## About

I'm [Miguel Cobá](https://miguelcoba.com). I write about Elixir, Elm, Software Development, and eBook writing.

- Follow me on [Twitter](https://twitter.com/MiguelCoba_)
- Subscribe to my [newsletter](https://newsletter.miguelcoba.com)
- Read all my articles on my [blog](https://blog.miguelcoba.com)
- Get my books:
    - [100 Elixir Tips](https://store.miguelcoba.com/l/100elixirtips) [FREE]
    - [Deploying Elixir](https://store.miguelcoba.com/l/deployingelixir) [FREE]
    - [Deploying Elixir: Advanced Topics](https://store.miguelcoba.com/l/advancedtopics)
    - [eBook Writing Workflow for Developers](https://store.miguelcoba.com/l/ebookwriting)

Photo by [Kyle Kempt](https://unsplash.com/@kjkempt17?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/phoenix?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) 
  
