Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CRUD Scaffolding for model, view, controller #713

Open
1 task
tamersalama opened this issue Sep 25, 2022 · 0 comments
Open
1 task

Add CRUD Scaffolding for model, view, controller #713

tamersalama opened this issue Sep 25, 2022 · 0 comments

Comments

@tamersalama
Copy link

Is your feature request related to a problem?

There’s quite a bit of boilerplate code that repeats for each CRUD operation needed for a new model.

What do we currently have to do now?

Adding a new model and it’s CRUD operations means implementing the model, it’s attributes, controller actions, views (forms, list, detail) and routes.

Describe the solution you'd like

A way to automate the creation of CRUD blueprint code (model, views, controller methods), that can then be further improved on by the developer. Very similar to Scaffolding in Rails.

Describe alternatives you've considered

python craft scaffold Post title:string content:text

would create the model with the necessary attributes (title, content), 7 controller methods and their implementation, views, and adjust routes accordingly.

the developer can then modify the blueprint code to further change it to their need.

Would this be a breaking change ?

  • Yes

Anything else ?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant