Generating API using AI
In this article, I treat AI somewhat neglectfully. The problem I presented at the beginning has already been well solved in both the back-end and front-end layers. Generating services and interfaces doesn't require creativity, and what's more, we want to achieve consistent results here, the same every time.
For this reason, I don't use AI to generate these structures, but it's not excluded that in the future, such code will be even easier to generate. AI will certainly help, for example, in quickly creating configurations or introducing how to use a particular generator.
How else can we generate front-end code?
In general, anywhere there is repetitiveness. Examples include NGRX code or repetitive structures in the user interface. It's important to choose the right tool for the specific problem. In the case of an Angular application, automation can be achieved using Angular Schematics.
For instance, Yeoman is a solution with a much broader application. It includes both built-in generators and allows the creation of custom ones. The advantage of Yeoman is that it is an ecosystem of generators and greatly simplifies their creation. Additionally, creating code for Yeoman is a good task for AI.