Skip to content

A toolkit for seamlessly integrating Inertia.js with Phoenix Framework, featuring Bun-powered JavaScript and CSS bundling. ExInertia provides an opinionated setup for modern server-driven SPAs in Elixir.

License

Notifications You must be signed in to change notification settings

nordbeam/exinertia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExInertia

ExInertia is a toolkit for seamlessly integrating Inertia.js with Phoenix, using Bun for JavaScript and CSS bundling.

Installation

ExInertia uses Igniter under the hood, so just run:

# in your project directory
mix archive.install hex igniter_new
mix igniter.install exinertia

This will set up ExInertia and all necessary dependencies in your Phoenix project.

After Installation

After installation, you'll need to update your tailwind.config.js to include "./js/**/*.{js,ts,jsx,tsx}" in the content paths.

Development

Start your Phoenix server:

mix phx.server

Visit localhost:4000/inertia to see your Inertia-powered page.

Frequently Asked Questions

Why not include these installers directly in the Phoenix Inertia adapter?

ExInertia makes some opinionated choices that may not suit everyone's needs. For example, we use Bun and Vite for asset bundling instead of the more commonly used esbuild. By keeping these installers separate, users have the flexibility to choose their preferred tooling while still using the core Inertia adapter.

Learn More

License

ExInertia is released under the MIT License.

About

A toolkit for seamlessly integrating Inertia.js with Phoenix Framework, featuring Bun-powered JavaScript and CSS bundling. ExInertia provides an opinionated setup for modern server-driven SPAs in Elixir.

Resources

License

Stars

Watchers

Forks

Languages