Setting Up a Fresh Ash App
The fastest way to get started with Ash is Igniter. One command scaffolds the project, pulls Ash (and whatever else you ask for), and wires up the config.
$ mix archive.install hex igniter_new
$ mix igniter.new app --install ash --yes
$ cd app
For a Phoenix application with Ash and PostgreSQL support:
$ mix igniter.new app --with phx.new --install ash,ash_postgres --yes
$ cd app
Igniter creates the App.Repo wrapper (when ash_postgres is
included), the application’s supervision tree, a sensible
.formatter.exs, and the Postgres config for every environment. You
still need to add the config :app, :ash_domains, [App.Shop] line to
config/config.exs once you define your first domain, which we do in
each chapter that uses this include.
Interactive web installer
You can also use the interactive web installer at https://ash-hq.org/#get-started to get a custom Igniter command tailored to your needs.
Manual setup alternative
If you want to see every file Igniter would create, walk through
the Ash Setup Guide. For a purely
manual route, mix new --sup app, add {:ash, "~> 3.0"} to
mix.exs, run mix deps.get, and configure .formatter.exs with
import_deps: [:ash]. Everything else in this chapter then matches
the Igniter flow.