Skip to content

Instantly share code, notes, and snippets.

@FrankApiyo
Last active April 26, 2025 15:53
Show Gist options
  • Save FrankApiyo/05dc837edc0cf383839294acc35d8cde to your computer and use it in GitHub Desktop.
Save FrankApiyo/05dc837edc0cf383839294acc35d8cde to your computer and use it in GitHub Desktop.
Steps for scaffolding a demo phoenix app
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment