Inertia Phoenix

Tests

Inertiajs Adapter for Elixir Phoenix

Installation

Add to mix.exs:

{:inertia_phoenix, "~> 0.1.0"}

Add Plug to WEB_PATH/router.ex

pipeline :browser do
...
plug InertiaPhoenix.Plug
end

Import render_inertia lib/active_web.ex

def controller do
quote do
...
import InertiaPhoenix.Controller
end
end

Render from Controller

def index(conn, _params) do
render_inertia(conn, "Home", props: %{hello: "world"})
# OR
render_inertia(conn, "Home")
end

Pingcrm Example (wip)

https://github.com/devato/pingcrm