Scaffold admin CRUD in .net core SPA Angular

Viewed 842

Is there a way to scaffold angular components + module for .net core api CRUD controllers? Or how to extend the existing scaffolding code in order to generate crud components + module for angular? Especially, I would like to generate forms and their unobtrusive validation

2 Answers

You can do that with a code generator like Telosys (https://www.telosys.org/). You can even generate your REST controllers if you want.

You will have to define your entities in a model (if you have a relational database you can generate a "Database-model" or else you can create a "DSL-model").

Then you can reuse existing templates to generate Angular code (exemples are available here : https://github.com/telosys-templates-v3/angular4-rest-frontend) and customize them to generate exactly what you want (each template is customizable).

For a Telosys overview see this post : https://modeling-languages.com/telosys-tools-the-concept-of-lightweight-model-for-code-generation/

Related