New Ash Framework website and interactive installer

The new Ash Framework site and installer are live. Please try it out and let me know what you think!

26 Likes

Looks good :023:

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 :blush:

Also not sure if it’s intentional but the main content on the community page is off-centre:

(I’m on Mac Safari)

1 Like

Perfect, will update!

1 Like

Wow, so fancy!

I really love the generator, are you generating the phoenix project on your server?

1 Like

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 :slight_smile:

2 Likes

It also seems to install elixir/erlang. Are you sure that is not dangerous, because folk is using different setups?

1 Like

Only if they’re not already present on your system. If the elixir command succeeds, that part of the script is skipped!

3 Likes

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?

3 Likes

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 :slight_smile: )

I love the direction Ash is taking Elixir Phoenix, reducing TCO is a real game changer

1 Like

I see, then building a default and letting people figure it out should be the best indeed.

1 Like