chan.dev / posts

Phoenix

🌱 This post is in the growth phase. It may still be useful as it grows up.

Prerequisite

Setup

Terminal window
brew install elixir
mix local.hex # installs to ~/.mix
mix archive.install hex phx_new
mix help phx.new
mix phx.new hello_world --database sqlite3
cd hello_world
mix ecto.create
mix phx.server
iex -S mix phx.server # run app inside IEx
Terminal window
# fly deployment
fly launch --now
# failed but created a bunch of files

guide