https://github.com/nshafer/pax
Toolkit for live CRUD applications and admins
https://github.com/nshafer/pax
Last synced: 8 days ago
JSON representation
Toolkit for live CRUD applications and admins
- Host: GitHub
- URL: https://github.com/nshafer/pax
- Owner: nshafer
- Created: 2023-08-01T00:51:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T22:20:57.000Z (5 months ago)
- Last Synced: 2025-02-10T22:22:12.504Z (5 months ago)
- Language: Elixir
- Homepage:
- Size: 1.08 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
### Dependency
Add `pax` to your list of dependencies in "mix.exs":
```elixir
def deps do
[
{:pax, "~> 0.1.0"}
]
end
```### Static assets
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
```Add the pax static assets to "myapp_web/components/root.html.heex", in the ``, and before your own css and js
so you can easily override the pax css.This only gives a bare-minimum of styling and functionality that is designed to be a good starting point for your own
customizations.This is only needed if you're using `Pax.Interface` directly, and not needed if you are only using `Pax.Admin`.
```html
```