SoftwareAteliers.AspNetCoreVueStarter 3.1.1

ASP.NET Core + Vue.js starter project
     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.

dotnet new --install SoftwareAteliers.AspNetCoreVueStarter::3.1.1
This package contains a .NET Core Template Package you can call from the shell/command line.

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 3.1 template use release v2.6.0
For ASP.NET Core 2.2 template use release v1.1.0


Table of Contents

Features

  • Hot module replacement
  • Code-splitting
  • Tree-shaking
  • ES2017 transpilation
  • Long term caching and so on

Used Technology Stack

ASP.NET Core 5.0:

  • Web.API
  • Vue CLI and JavaScript Services middlewares to integrate with client app

Vue.js with CLI 4.0 supporting optional integrations:

  • TypeScript
  • Progressive Web App
  • Vue Router & Vuex (State Store)
  • Linting, unit testing, E2E testing
  • 3rd party component frameworks (Vuetify, Vue Bootstrap etc.)
  • publish your personal/enterprise plugin and so on...

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

  • Clone this repository 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

(Optional) Scaffold Vue.js app with custom configuration

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

  • Remove all the contents of the folder /ClientApp
  • Create a new Vue project by using Vue CLI: 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.

  • Move all the contents from the new folder /client-app 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

  • Run the .NET application using dotnet run

2. Using the built-in run command

  • Run the application in VSCode or Visual Studio 2017 by hitting F5

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

View your application running

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

  • Run the .NET publish command using Release configuration: dotnet publish -c Release

or

  • Follow the Publish wizard in Visual Studio selecting Folder profile.

2. Docker output

  • Run the following command in a cmd window to build the docker image:
    docker build -t <IMAGE_NAME> .

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

  • Run the application in a cmd window by this command:
    docker run -d -p 5000:80 <IMAGE_NAME>

Recommended plugin for debugging Vue

  • Get Chrome DevTools for Vue.js here

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 - 2021 Software Ateliers

Where to find me

Medium: Software Ateliers | Twitter: @SAteliers

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 3.1 template use release v2.6.0
For ASP.NET Core 2.2 template use release v1.1.0


Table of Contents

Features

  • Hot module replacement
  • Code-splitting
  • Tree-shaking
  • ES2017 transpilation
  • Long term caching and so on

Used Technology Stack

ASP.NET Core 5.0:

  • Web.API
  • Vue CLI and JavaScript Services middlewares to integrate with client app

Vue.js with CLI 4.0 supporting optional integrations:

  • TypeScript
  • Progressive Web App
  • Vue Router & Vuex (State Store)
  • Linting, unit testing, E2E testing
  • 3rd party component frameworks (Vuetify, Vue Bootstrap etc.)
  • publish your personal/enterprise plugin and so on...

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

  • Clone this repository 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

(Optional) Scaffold Vue.js app with custom configuration

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

  • Remove all the contents of the folder /ClientApp
  • Create a new Vue project by using Vue CLI: 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.

  • Move all the contents from the new folder /client-app 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

  • Run the .NET application using dotnet run

2. Using the built-in run command

  • Run the application in VSCode or Visual Studio 2017 by hitting F5

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

View your application running

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

  • Run the .NET publish command using Release configuration: dotnet publish -c Release

or

  • Follow the Publish wizard in Visual Studio selecting Folder profile.

2. Docker output

  • Run the following command in a cmd window to build the docker image:
    docker build -t <IMAGE_NAME> .

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

  • Run the application in a cmd window by this command:
    docker run -d -p 5000:80 <IMAGE_NAME>

Recommended plugin for debugging Vue

  • Get Chrome DevTools for Vue.js here

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 - 2021 Software Ateliers

Where to find me

Medium: Software Ateliers | Twitter: @SAteliers

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.1.1 80 1/6/2021
3.1.0 40 1/6/2021
3.0.0 55 1/4/2021
2.6.0 278 10/27/2020
2.5.1 266 9/21/2020
2.5.0 106 9/21/2020
2.4.1 344 7/22/2020
2.4.0 384 5/31/2020
2.3.4 118 5/30/2020
2.3.3 475 4/7/2020
2.3.2 323 3/13/2020
2.3.1 228 3/3/2020
2.3.0 367 2/5/2020
2.2.1 292 2/1/2020
2.2.0 297 1/7/2020
2.1.4 299 12/3/2019
2.1.3 355 11/19/2019
2.1.2 223 11/6/2019
2.1.1 260 10/25/2019
2.1.0 188 10/21/2019
2.0.0 220 10/16/2019
1.1.0 314 9/23/2019
1.0.7 479 7/13/2019
1.0.6 350 6/2/2019
1.0.5 459 4/20/2019
1.0.4 365 2/19/2019
1.0.3 252 2/7/2019
1.0.2 431 1/19/2019
1.0.1 276 1/8/2019
1.0.0 254 1/6/2019