Skip to content

mutablestate/custom_phx

Repository files navigation

CustomPhx

Mix tasks to help customise a newly generated Phoenix app.

Requirements

Requires Phoenix 1.4 or above (configured with webpack).

mix phx.new --version
Phoenix v1.4.8

Usage

  1. Install the custom_phx archive (adds new mix tasks).
mix archive.install https://github.com/mutablestate/custom_phx/raw/master/archives/custom_phx.ez
  1. Create a new Phoenix project (tested with default options).
mix phx.new APP_NAME

Fetch and install dependencies? [Yn] y

cd APP_NAME
  1. Install Tailwindcss (config, templates, HTML generator task).
mix tailwind.install
  1. (optional) Run the Tailwindcss HTML generator (instead of mix phx.gen.html).
mix tailwind.gen.html Accounts User users name:string email:string

License

MIT