Steve
Steve

Reputation: 4563

Where will Web API resides in Blazor full stack project?

Before Blazor, we create web api in web application web api project template project. But now, we have Blazor Web Assembly which has "ASP.NET Core Hosted" option which can have web api as well. I am a little confused between these 2 options.

Upvotes: 0

Views: 185

Answers (1)

Madhu
Madhu

Reputation: 2551

It is same as having Angular/React as frontend with AspNetCore project as backend for Web API?

  1. BlazorApp.Client -> FrontEnd part - Place any front end code here.
  2. BlazorApp.Server -> BackEnd part - For Web API, Authentication and can act as data layer.
  3. BlazorApp.Shared -> Mostly for holding shared classes between client and server part.

Upvotes: 1

Related Questions