morgand536 / ASPNETCore-Angular-StarterTemplate

An Angular / ASP.NET Core Starter Template with small Gulp-Tasks

Home Page:http://offering.solutions/blog/articles/2016/01/25/angular-2-asp-net-core-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular ASP.NET CORE WebAPI Starter Template

This is a starter template for developing Angular with ASP.NET Core WebAPI Applications.

This template is done with npm. Its an Angular application with an http-service getting values from an ASP.NET CORE WebAPI.

Blogpost

Angular and ASP.NET Core Starter

Start

Start by typing

npm install

at the level of the "package.json" file

Option 1

Now you can just press "play" inside Visual Studio to get started.

If you change the *.ts-files you need to run the tsc command manually.

Option 2

npm start will run the gulp task for you, starting the lite-server, the dotnet server and the tsc-watcher.

Distribution

npm run dist will run the gulp task for distribution, so it will build the app and place it in the wwwroot folder. You can now serve it with npm run lite.

TO start the backend type dotnet run

See this nice link which the Angular team did by working with Visual Studio and Angular Visual Studio 2015 QuickStart

alt text

About

An Angular / ASP.NET Core Starter Template with small Gulp-Tasks

http://offering.solutions/blog/articles/2016/01/25/angular-2-asp-net-core-starter/


Languages

Language:JavaScript 34.7%Language:HTML 28.1%Language:TypeScript 26.9%Language:C# 10.0%Language:CSS 0.3%