AF
Ash Framework•3mo ago
Albin

Quickly scaffold Ash Resources

Hey everyone, so I made a quick little site to quickly scaffold Ash resources using ash.gen.resource Uses the browser's localstorage to persist scaffolds across refreshes/restarts Supports drag and drop to rearrange attributes and relationships Reactively updates the scaffold command Check it out here: https://albinkc.github.io/ashgen/ P.S. I think it covers all options of ash.gen.resource. Please create an issue/PR if I missed something
6 Replies
Albin
AlbinOP•3mo ago
update: since ash generators now patch, I've updated the script to use a two phase approach to generate all the resources first and then add relationships; solving the chicken-and-egg problem
Rutgerdj
Rutgerdj•3mo ago
Next step: being able to select the other resources in a dropdown :D
Albin
AlbinOP•3mo ago
good idea added other resources as autocomplete options
zimt28
zimt28•3mo ago
Nice! It would be awesome to have something like this as Ash Studio or so in the future, which runs locally and reads/patches the source code 😃
Carl
Carl•2mo ago
Just read about this in the news letter, Ash Occationally, and I'm loving it @Albin ! I've got a whole bunch of data modelling before me and your work made my day for sure.
Ashraf
Ashraf•2mo ago
Thanks for the hard work on this one. Maybe next step in the days of AI coding I supply you with ERD diagram "could be mermaid syntax" and it generate automatically all mix tasks 😆😆😉

Did you find this page helpful?