The new Ash Framework site and installer are live. Please try it out and let me know what you think!
Looks good
Don’t forget there’s a shortcut you can use: https://elixirforum.com/ash and feel free to use our logo on your community page
Also not sure if it’s intentional but the main content on the community page is off-centre:
(I’m on Mac Safari)
Perfect, will update!
Wow, so fancy!
I really love the generator, are you generating the phoenix project on your server?
No - you can check out the shell script from the first part of the generated command to see what it does, eg.
https://ash-hq.org/new/test?install=phoenix
When you run the script on your machine, it installs the phx_new
and igniter_new
Hex archives, and uses igniter.new
to generate a new Mix project using phx.new
It also seems to install elixir/erlang. Are you sure that is not dangerous, because folk is using different setups?
Only if they’re not already present on your system. If the elixir
command succeeds, that part of the script is skipped!
Personally I’d prefer if it didn’t do that, I’ve got elixir/erlang installed via mise but may not always have it activated and wouldn’t want to have it implicitly installed again without prompting.
The installer is neat though, I like the look of the tooling around Ash, excited to explore it more!
We based it off of what the new phoenix installer does, and we want to try to be unified. We are going to be adding an option for if you are using the fish
shell, we could potentially add a flag or explanation that it will happen? Ultimately there are a lot of audiences for this and it can be difficult to make it exactly what everyone needs. Perhaps for those with more discerning sensibilities there could be a “show script” button that will link to the underyling script?
If you change the order of execution a bit for the curl should work in any shell
curl 'https://ash-hq.org/new/virtual_reality_yoga?install=phoenix' | sh \
&& cd virtual_reality_yoga \
&& mix igniter.install \
ash_phoenix ash_graphql ash_json_api ash_postgres ash_sqlite \
ash_authentication ash_authentication_phoenix ash_money ash_csv \
ash_admin ash_state_machine ash_double_entry ash_archival \
ash_paper_trail cloak ash_cloak \
--auth-strategy password \
--auth-strategy magic_link \
--yes
I tested already on bash
and fish
The primary issue here is that it is possible for an igniter installer to prompt for user input, which that formulation won’t allow AFAIK. The --yes
should tell them not to do that, but they don’t have to listen to that flag necessarily, and over time this tooling will compose installers I don’t personally develop (Oban installer option coming soon now that Oban has an igniter installer )
I love the direction Ash is taking Elixir Phoenix, reducing TCO is a real game changer
I see, then building a default and letting people figure it out should be the best indeed.