Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nshafer/pax

Toolkit for live CRUD applications and admins
https://github.com/nshafer/pax

Last synced: 3 days ago
JSON representation

Toolkit for live CRUD applications and admins

Awesome Lists containing this project

README

        

# Pax

**DO NOT USE THIS MODULE... YET**

This module is under heavy development, and is not ready for anyone to use it yet.

Pax (Phoenix Admin eXtensions) is a toolkit for adding CRUD functionality to LiveViews, as well as
an admin interface built on those tools.

## Installation

Rough instructions for now.

Add `pax` to your list of dependencies in "mix.exs":

```elixir
def deps do
[
{:pax, "~> 0.1.0"}
]
end
```

Add a `Plug.Static` plug to load static assets at /pax directly from the pax dependency. Add the
following to your "lib/myapp_web/endpoint.ex", after any `socket` lines, and before
`plug Plug.Parsers`. The best place is right after any existing `plug Plug.Static` lines.

```elixir
plug Plug.Static,
at: "/pax",
from: :pax,
gzip: false
```