Tiago Barbosa
Tiago Barbosa

Reputation: 3

ASP.NET Core SPA Vue Template vs Vue CLI

I'm starting to learn about Single Page Aplications (SPA) and I was left with several doubts, although I searched a lot.

Let's consider a SPA application with Vue and a Web API application (ASP.NET Core), both on different servers.

1. Why would I use an ASP.NET Core Vue template if I can generate a pure Vue project with Vue CLI??

2. Is there any advantage in using the client made from an ASP.NET Core Vue template on the purely Vue client? The same goes for React and Angular?

Upvotes: 0

Views: 590

Answers (1)

K. Akins
K. Akins

Reputation: 737

If by "on different servers" you mean that the Vue application is hosted on a different server than your API, then I don't believe there is any advantage that you'd have by using the Visual Studio templates. The templates are designed to contain the two projects (client-side and API) into one, so that the development and deployment of both can be done together.

So if you're planning on deploying your .NET API and Vue application to different servers, then you'd probably leave the SPA configuration out of your .NET app, hence no need for the template.

Upvotes: 0

Related Questions