Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use ASP.Net Boilerplate Modul Zero Vue.js template?

Tags:

I downloaded the free template for a single-page application with ASP.Net Core 2.x and EntityFramework Core 2.x. version 3.9.0.

After unpacking the archive, I did not found the project ProjectName.Web.MVC in the solution. If I understand correctly, I need to somehow generate it. But neither on the official documentation site, nor here I found a single word about how to do it. There is a file 3.9.0/aspnet-core/build/build-mvc.ps1 in the archive, maybe I need to use it somehow?

How to compile/generate/create an ProjectName.Web.MVC project for using Vue.js?

like image 778
XelaNimed Avatar asked Jun 20 '18 11:06

XelaNimed


1 Answers

I solved this problem as follows.

First, need to understand that when you debug/start a project in VisualStudio, only WebAPI starts. To start vue, you need installed Node.js, Yarn and following npm packages like so:

npm install -g webpack, vue-cli, babel-cli, babel-preset-env

If any packages are redundant, then tell me in comments.

After that, I started the project from VisualStudio and called following NPM commands in the console in vue folder npm install --save-dev. After this dependencies loaded to node_modules folder. At last run npm command npm run serve. Now vue available at URL http://localhost:8080.

like image 56
XelaNimed Avatar answered Oct 11 '22 14:10

XelaNimed