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.
Angular and ASP.NET Core Starter
Start by typing
npm install
at the level of the "package.json" file
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.
npm start
will run the gulp task for you, starting the lite-server, the dotnet server and the tsc-watcher.
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