The easiest way to create a new Phoenix Framework application:
1. Install asdf
2. Install plugins
asdf plugin-add erlang asdf plugin-add elixir
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
4. Install Phoenix
mix local.rebar --force mix local.hex --force mix archive.install hex phx_new 1.6.0 --force
5. Create the Phoenix application
mix phx.new saturn --install
6. Create DB and run application
cd saturn mix ecto.create mix phx.server
7. Visit your Phoenix LiveDashboard
Open http://localhost:4000/dashboard
Done.
About
I'm Miguel Cobá. I write about Elixir, Elm, Software Development, and eBook writing.
- Follow me on Twitter
- Subscribe to my newsletter
- Read all my articles on my blog
- Get my books:
Top comments (0)