mix backpex.install (Backpex v0.15.2)
View SourceInstalls and sets up Backpex according to the installation guide
This task automates the steps from the Backpex installation guide to quickly set up Backpex in your Phoenix application.
You can run it with mix backpex.install after adding Backpex to your dependencies,
or with mix igniter.install backpex to add the dependency and run the installer in one step.
What this installer does:
- Sets up Global Configuration by configuring the PubSub server
- Adds Backpex Hooks to your app.js file
- Installs daisyUI via npm (with your permission)
- Sets up the formatter configuration
- Adds Backpex files to Tailwind content
- Adds routes to your router
- Creates a default admin layout
- Checks for and offers to remove the default background color
- Checks for and offers to remove the @tailwindcss/forms plugin
Example
mix backpex.install
Options
--app-js-path- Path to your app.js file (default: "assets/js/app.js")--app-css-path- Path to your app.css file (default: "assets/css/app.css")--no-layout- Skip generating the admin layout