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 something6 Replies
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
Next step: being able to select the other resources in a dropdown :D
good idea
added other resources as autocomplete options
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 😃
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.
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 😆😆😉