mix phx.new --binary-id budgie
# add docker-compose.yml below
mix setup
mix phx.gen.auth Accounts User users --hashing-lib argon2
Edit mix.ex
defp deps do
[
# remove this:
# {:swoosh, "~> 1.3"},
# {:finch, "~> 0.6"}, # only if it's just for Swoosh
]
end
- Stub out the mailer file
defmodule MyApp.Mailer do
def deliver(_email), do: :ok
end
---
services:
postgres:
image: postgres:17.2-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_DB: budgie_dev
POSTGRES_PASSWORD: postgres
container_name: budie-db