Skip to content

Request: Crud Generator. #524

Open
Open
@louim

Description

@louim

Hello and thanks for creating this really nice tool!

I would like to request a crud generator. Currently, we have the "things" section, but it is not really fleshed out, as you can't edit items after they are added, and items consist of only one field. It's also only an example, as there is no way to generate the code as is it. Would it be possible to create a Crud generator? We have an endpoint generator, I think it would really go well with it, allowing people less experimented (like me) to fully kickstart the app and get something running really quick. I think it would also help displaying the good practices when doing validation, etc...

Would it be much more complex to allow a list of fields to be passed when creating the endpoint? Something like that:

yo angular-fullstack:endpoint post name:string description:string lastUpdatedAt:date

Maybe after that it could ask if the user want to create a Crud based on that endpoint?
Things that would be really nice to have in the crud generator:

  • Full create / edit / list view
  • Field validation (displaying Mongoose error messages?)
  • Real-time updating
  • Role based edit / delete permission?

What do you think? Is it too complex to be done as a generator? Maybe then as more complex "Things" example could be done?

Once again, thank you guys for all you have done on this project, keep up the good work!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions