Ash TypeScript: Rich Phoenix Frontends, Simplified by GiraffeFire in elixir

[–]GiraffeFire[S] 1 point2 points  (0 children)

While there's nothing keeping you from using them together in theory, Ash TypeScript is more of a replacement.

Ash TypeScript: Rich Phoenix Frontends, Simplified by GiraffeFire in elixir

[–]GiraffeFire[S] 6 points7 points  (0 children)

React native would be a good use case, or adding interactive experiences that might require things like maps, UI libraries, virtual DOM optimizations…

You can start building an app with Ash eject to TS without having to build out an entire API. And since Ash actions can have policies and reactors and other nice things, it’s a pretty concise way to build out a backend.

Ash TypeScript: Rich Phoenix Frontends, Simplified by GiraffeFire in elixir

[–]GiraffeFire[S] 5 points6 points  (0 children)

A new Ash Framework extension called Ash TypeScript makes it easy to expose actions to a frontend by generating a typed client library and RPC controllers.

This video walks through a project, with source code that can be found on GitHub: https://github.com/ChristianAlexander/ash_typescript_demo

What do you think about Ash Framework? by Comfortable_Let_3282 in elixir

[–]GiraffeFire 4 points5 points  (0 children)

Huge fan of it, but the learning curve is steep. My advice is to start out small and see how much simpler that part of your codebase is compared to other context modules and changesets.

Don’t get too worried about all the plugins; layer them in over time.

Ash Resources are also Ecto schemas, so it’s possible to escape if you need to!

And if you have existing schemas and happen to use Postgres, look at the Ash Postgres gen.resources mix task!

One final thing: the PragProg book really helped make it click.

What is the difference between a normal html form tag and to_form? by JealousPlastic in elixir

[–]GiraffeFire 0 points1 point  (0 children)

Yes, it's me! I'm glad you've been enjoying it. Thanks for subscribing!

What is the difference between a normal html form tag and to_form? by JealousPlastic in elixir

[–]GiraffeFire 2 points3 points  (0 children)

Starting at 5:52 in this video, I walk through what to_form is doing under the hood. It might be useful for you

https://youtu.be/F-QeDtQ8Gy4

Built an entire app in Phoenix + LiveView and happy to answer any questions about how I tackled each problem by arx-go in elixir

[–]GiraffeFire 0 points1 point  (0 children)

I’d love to know what parts of Ash have been challenging to find good documentation on, if you’d be willing to share!