jasontaylordev / NorthwindTraders

Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Separating .NET Core Web API Code and Client Code (Front end UI)

Gareth064 opened this issue · comments

In this and the solution template you have create, the .NET Core Web API code is in the same project as the Angular UI. Doesn't that make it harder to change the Front End UI, or am I missing something here?

I have it in my head that the APIs would be a layer between the Application Layer and the UI Layer.

That way we could have multiple UI's (Web, Mobile, Desktop etc.) using the same API.

Am I thinking about this the wrong way?

Well you can simply exclude the ClientApp folder to a different project. You only need to take take care of the correct Api Url.