# ASP.NET Core Vue Starter
The repository contains an ASP.NET Core + Vue.js starter template. The template runs on ASP.NET Core 3.1 and is created by Vue CLI 4.0 with a new plugin based architecture allowing developers to interactively scaffold a new project with just a one command.
Original article how to create the starter template is available here.
For ASP.NET Core 2.2 template use release v1.1.0
ASP.NET Core 3.1:
Vue.js with CLI 4.0 supporting optional integrations:
For a full feature list, I suggest you to read the official CLI release statement by Evan You.
There are two ways how to set up the project: one for people who want to create their own template and choose custom integrations and the other for developers who want to start with no configuration.
git clone https://github.com/SoftwareAteliers/asp-net-core-vue-starter
or you can use .NET Core CLI templates:
Install the template from NuGet repository: dotnet new -i SoftwareAteliers.AspNetCoreVueStarter
Initialize the project: dotnet new vue -o MyProject
If you prefer to overwrite default Vue client app with custom settings, take the following steps:
vue create client-app
OR by using CLI graphical interface running vue ui
Unfortunately Vue CLI does not allow us to set a project name by C# standards using Upper Camel Case (Pascal Case) naming convention, so let's initiate app inside of client-app folder and then move the content to ClientApp.
Now application is ready to run.
You have three choices when it comes to how you prefer to run the app. You can either use the command line or the build-in run command.
dotnet run
F5
It will take some time during the first run to download all client side dependencies.
Run the following command in a cmd window to build the docker image:
docker build -t <IMAGE_NAME> .
Run the application in a cmd window by this command:
docker run -d -p 5000:80 <IMAGE_NAME>
Browse to http://localhost:5000 for ASP.NET Core + Vue app or browse to http://localhost:8080 for Vue app only.
Want to file a bug, contribute some code, or improve documentation? Excellent! Please make sure to check existing issues before opening a new one.
Special thanks to everyone who helped and contributed to this project!
Copyright © 2018 - 2020 Software Ateliers
Medium: Software Ateliers | Twitter: @SAteliers
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。