Home

Awesome

ASP.NET Core Vue Starter

The repository contains an ASP.​NET Core + Vue.js starter template. The template runs on ASP.NET Core 5.0 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.

Nuget

For ASP.NET Core 3.1 template use release v2.6.0

For ASP.NET Core 2.2 template use release v1.1.0


Table of Contents

Features

Used Technology Stack

ASP.NET Core 5.0:

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.

Prerequisites


Getting started

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.

Clone the starter with default configuration

or you can use .NET Core CLI templates:

(Optional) Scaffold Vue.js app with custom configuration

If you prefer to overwrite default Vue client app with custom settings, take the following steps:

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.

Run the application

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.

1. Using the command line

2. Using the built-in run command

It will take some time during the first run to download all client side dependencies.

Browse to http://localhost:5000 for ASP.​NET Core + Vue app or browse to http://localhost:8080 for Vue app only.

Application screenshot

Publish the application

1. Folder output

or

2. Docker output

ATTENTION! Do not miss the final dot to build the current directory

View your application running

Recommended plugin for debugging Vue


Issues and Contribution

Want to file a bug, contribute some code, or improve documentation? Excellent! Please make sure to check existing issues before opening a new one.


Contributors

Special thanks to everyone who helped and contributed to this project!


License

MIT License

Copyright © 2018 - 2022 Software Ateliers

Where to find me

Medium: Software Ateliers | Twitter: @SAteliers