Starter Template for ASP.NET Core and Vue.JS (Vue) - with Webpack (with HMR), Web API, Vuex state manangement and other best-practices baked in!
Written in ES6, TypeScript version coming soon!
Find the template through NuGet package manager inside Visual Studio or here
Or download it via dotnet templates
// Make a directory where you want the project
mkdir my-vue-starter && cd my-vue-starter
// Download the dotnet template
dotnet new -i aspnetcore-vuejs
// Run and install the template
dotnet new vuejs
// Make sure you install the dependencies
npm install
Now you can open the project via Visual Studio or VSCode, press F5 to run the application!
Note:
dotnet restore
unless you install with dotnet new vuejs --skipRestore
dotnet restore
unless you install with dotnet new vuejs --skipRestore
$ git clone https://github.com/MarkPieszak/aspnetcore-Vue-starter.git VueWeb
$ cd VueWeb/content
$ dotnet restore && npm install
$ code .
*.sln
file with "Open project" from Visual Studio IDEYou have two choices when it come at how your preffer to run it. You can either use the command line or the build-in run command.
Run the application using npm run dev
.
Run the application in VSCode or Visual Studio 2017 by hitting F5
.
When running the app using debug menu or F5
VS open auto the app in the browser;
Nothing's ever perfect, but please let me know by creating an issue (make sure there isn't an existing one about it already), and we'll try and work out a fix for it! If you have any good ideas, or want to contribute, feel free to either make an Issue with the Proposal, or just make a PR from your Fork. Please note that this project is released with a Contributor Covenant Code of Conduct. By participating in this project you agree to abide by its terms.
Looking for ASP.NET Core & Angular 7.x+ Universal starter? click here
Copyright (c) 2016-2019 Mark Pieszak
Check out Trilon.io for more info!
Contact us at hello@trilon.io, and let's talk about your projects needs.
Twitter: @Trilon_io