Code Monkey home page Code Monkey logo

aspnetcore-vue-typescript-template's Introduction

ASP.NET Core 2.1 multi-page Vue.js with TypeScript template

The repository contains template using Vue.js, Vuex, Vue router, TypeScript, Bulma, SASS and Jest. It integrates Vue into AspNetCore MVC and showcases how to use Vue with it's entire ecosystem in .NET as a multipage (multiple mini SPA's) application. The template can also be used as a complete single page application but you should consider using Vue cli for this as it is a more flexible and advanced solution.


prs welcome

Nuget

Version Downloads
NuGet Nuget

Table of Contents

Features

  • ASP NET Core 2.1
  • Vue.js
  • Vuex
  • TypeScript
  • Bulma
  • Sass
  • Jest
  • Webpack 4

Prerequisites

Installation

In order to create a new project from this template, you must first install it.

Install the template from NuGet by running the following command:

dotnet new -i AspNetCore.Vue.TypeScript.Template

If successful, you should see the new template in your template list ASP.NET Core with Vue, Vuex and TypeScript

Creating a new project

To create a new project run dotnet new vuetypescript command and provide the name of your project as the -n or --name parameter. If name is not provided, name of the current folder will be used.

Example

dotnet new vuetypescript --name TestProject.Web

Running newly created project

In order to run your application, you can just start it from the Visual Studio or by running dotnet run command from the console.

NOTE: When starting the application for the first time, the build might take some time because it will install required npm packages.

Development, publishing and available commands

Template features the following commands

  • npm run dev - Builds front end in development mode and watches for any changes made to the files.
  • npm run build:dev - Builds front end in development mode.
  • npm run build:prod - Builds front end in production mode.
  • npm run test - Runs tests under tests folder and generates code coverage report.
  • npm run publish - Builds production optimized front-end packages and publishes the application in release mode.

Licence

MIT License

Copyright (c) 2018-Present Danijel Hrček

Screenshots

Using third-party libraries

template

VueX store with TypeScript

template

Template info

template

Fetching data from external API

template

aspnetcore-vue-typescript-template's People

Contributors

danijelh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.