View Source Phoenix
Ash plays nicely with phoenix. There are a few things to consider when using them side-by-side.
To add Ash to an existing application is easy, generally only involves updating your
Ecto.Repo to use
AshPostgres.Repo if you are using
AshPostgres. Other than that, you can follow the guides as usual.
If you want to use
AshPostgres, you have two options here:
- create a phoenix app as normal, and when you set up
AshPostgres, ignore the steps for creating the repo, and instead update it to use
- create the app with
--no-ectoand follow the AshPostgres guide getting started guide fully.
If you are using extensions like AshGraphql or AshJsonApi, you will want to follow their getting started guides separately.