An admin ui for Ash Resources
Find a file
2021-03-24 00:08:29 -04:00
.github chore: update otp in build 2021-03-22 13:16:15 -04:00
assets improvement: add pagination support 2021-03-20 20:09:25 -04:00
config chore: release version v0.1.0 2021-03-22 02:42:18 -04:00
dev feat: draw the rest of the owl 2021-03-22 02:41:22 -04:00
lib improvement: only send changing fields 2021-03-24 00:08:29 -04:00
logos chore: package setup + formatting + sobelow 2021-03-22 00:05:49 -04:00
priv feat: support fully managed relationships 2021-03-21 21:46:46 -04:00
test feat: draw the rest of the owl 2021-03-22 02:41:22 -04:00
.check.exs feat: draw the rest of the owl 2021-03-22 02:41:22 -04:00
.credo.exs feat: draw the rest of the owl 2021-03-22 02:41:22 -04:00
.formatter.exs chore: package setup + formatting + sobelow 2021-03-22 00:05:49 -04:00
.gitignore savepoint 2020-12-03 22:19:28 -05:00
CHANGELOG.md chore: release version v0.1.3 2021-03-22 21:39:04 -04:00
dev.exs WIP 2020-12-08 01:22:24 -05:00
LICENSE chore: package setup + formatting + sobelow 2021-03-22 00:05:49 -04:00
mix.exs chore: update surface version 2021-03-24 00:07:50 -04:00
mix.lock chore: update surface version 2021-03-24 00:07:50 -04:00
README.md chore: update docs 2021-03-22 21:41:00 -04:00

AshAdmin

Elixir CI License: MIT Coverage Status Hex version badge

An admin UI for Ash resources. Built with Phoenix Liveview.

Usage

First, ensure you've added ash_admin to your mix.exs file.

{:ash_admin, "~> 0.1.3"}

Setup

defmodule MyAppWeb.Router do
  use Phoenix.Router

  import AshAdmin.Router

  # Use your `:browser` pipeline, or use `admin_browser_pipeline` to create one. Only necessary
  # if you don't already have a functioning liveview `:browser` pipeline
  admin_browser_pipeline :browser

  scope "/" do
    # Pipe it through your browser pipeline
    pipe_through [:browser]

    ash_admin "/admin",
      apis: [MyApp.Api1, MyApp.Api2]
  end
end

Configuration

See the documentation in AshAdmin.Resource and AshAdmin.Api for information on the available configuration.