How To Update Visual Studio 2019 Asp.Net Core Angular Project

Developer Support

Premier Developer Consultant Wael Kdouh explores how to decouple the API backend from an Angular CLI project to make to it easier to manage microservices architectures.


The updated Angular project template in Visual Studio 2019 (and 2017 before that) provides a convenient starting point for ASP.NET Core apps using Angular and the Angular CLI to implement a rich, client-side user interface (UI). The template is equivalent to creating an ASP.NET Core project to act as an API backend and an Angular CLI project to act as a UI.

Whereas the template offers the convenience of hosting both project types in a single app project, I highly recommend that the app project doesn’t get published as a single unit. Instead, I recommended that the API backend gets hosted in its own project that is separate from the Angular CLI project. This will lead to decoupling which in turn makes it easier to utilize a microservices architecture.

The project template creates an ASP.NET Core app and an Angular app. The ASP.NET Core app is intended to be used for data access, authorization, and other server-side concerns. The Angular app, residing in the ClientApp subdirectory, is intended to be used for all UI concerns.

Continue Reading…

0 comments

Discussion is closed.

Feedback usabilla icon